Having an issue handling this in sql. Have a table of Check Amounts tied to customers. If I want to give them each unique numbers to be paid with, I cannot figure out how to do that with just an update statement and not going line by line(there is a large amount of data)
I have to group by a certain criteria, and send out payments, but they cannot be above $10000.
Table
customer CheckAmount
a 4000
a 5000
a 2001
b 3333
c 8000
d 11000
After my update it should look like :
customer checkamount paymentnumber
a 4000 1
a 5000 1
a 2001 2
b 3333 3
c 8000 4
d 11000 5
Is this possible in just an update statement ?