Click here to Skip to main content
15,885,365 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have three columns exam_id,exam_date and receipt_no. The minimum value of exam_date is '2005-03-11' and the max date can be today's date. I want to write a cursor to generate receipt_no. The condition is that for every month the receipt_no should be reset to 1. and if the receipt_no is already generated then it should not be regenerated.
Posted
Comments
Tomas Takac 16-Apr-15 7:16am    
Why do you want to use a cursor?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900