I am using Microsoft SQL Server Management Studio.
I want to sum each row of my record (say, column ID
) with a constant value (say 50
).
So here is a better picture:
Click here for the image that i prepared for better understanding of my requirement.
I know SUM
can be used to sum up the entire column and come out with a TOTAL
at the end of the row, but how about adding every row's record with a constant value?
Once the sum is done, I need to do my last step, which is to reset the ID of the next new row (which doesn't need to SUM like above) from 154 to 999. Can anyone also advice me on resetting primary key?