Click here to Skip to main content
15,892,674 members
Please Sign up or sign in to vote.
2.60/5 (2 votes)
See more:
hi frnds ,
i am new to the sql server ,  please give me some suggestion
in sqlserver i have a two  coulmns like (amount and date ) every day amount should increment by  50 rupees . .please help  me guys , i am not getting how to do . . please 
thanks . .
Posted

1 solution

Try:
SQL
UPDATE t1.Amount = t2.Amount + 50
FROM TableName as t1 INNER JOIN TableName AS t2 ON t1.Key = t2.Key
 
Share this answer
 
Comments
u mani 12-Aug-14 2:30am    
Dear Maciej thanks for reply ,how to update this automatically every day please help me
Maciej Los 12-Aug-14 2:32am    
u mani 12-Aug-14 2:33am    
please tell me the process to create a job .
Maciej Los 12-Aug-14 3:19am    
Follow the link i provided.
u mani 12-Aug-14 3:42am    
ok thank u please provide

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