Hi All, I have this table that has a key_no and seq_no. The seq_no is missing right now. I was supposed to provide the sequence number form my code which I didn't provide.Table AKey_no Seq_no Data1 0 Test11 0 Test21 0 Test31 0 Test41 0 Test52 0 Test6 2 0 Test72 0 Test82 0 Test92 0 Test102 0 Test113 0 Test123 0 Test133 0 Test14Is there any way, I can put the sequence number through a query right now. The sequence number will increment as long as the the key number is same and as soon as the key number changes, the sequence number will be reset to 1. I want something like this:Key_no Seq_no Data1 1 Test11 2 Test21 3 Test31 4 Test41 5 Test52 1 Test6 2 2 Test72 3 Test82 4 Test92 5 Test102 6 Test113 1 Test123 2 Test133 3 Test14and so on..any help will be appreciated. I have other columns in this table.
↧