Hi All,
I have a requirement in which there is one incremental field based on city.
Based on city the SR No needs to be incremented. We have achieved this by using Rank function and its working fine.
Now the problem is if we run this procedure for the next time the SR No to be incremented.
For Eg: If we run the procedure for the 1’st following is the output.
SR No City
1 Chennai
1 Chennai
2 Mumbai
3 Hyderabad
3 Hyderabad
If we run the procedure for 2’nd time the output should be as given below.
SR No City
4 Chennai
4 Chennai
4 Chennai
5 Hyderabad
6 Yamuna nagar
6 Yamuna nagar
If we run the procedure for the next time the SR No should start from 7.
Please help
