sql server - I want to update the salary for the employees whose joined last 6 years in sql -
i tried query, i'm stuck in where condition. can me how update salary joined last 6 years?
query:
update emp set sal=sal+3000 doj=(select doj emp doj)
hopefully :)
update emp set sal=sal+3000 doj>=sysdate-6*365 , doj<sysdate;
Comments
Post a Comment