Hi , I got a table with all the records in it. I have four fields specifically, Region (which stores numbers n like 01, 02, 03) and ID( format is XX00000X) , Id ( which has values starting from 1) and rate ( vlaue such as 9223,9224,9225). i need a counter based on the above specified fields.
Region CIN ID Rate Counter
01 XX12345X 1 9222 1
01 XX12345X 1 9223 2
01 XX12345X 2 9222 1
01 XX12345X 2 9223 2
So as you have seen in the above table as soon as ID changed keeping all the other fields the same . the counter has to start from 1 again. I Do not know how to do that please help me as soon as possible
Region CIN ID Rate Counter
01 XX12345X 1 9222 1
01 XX12345X 1 9223 2
01 XX12345X 2 9222 1
01 XX12345X 2 9223 2
So as you have seen in the above table as soon as ID changed keeping all the other fields the same . the counter has to start from 1 again. I Do not know how to do that please help me as soon as possible