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

Popular posts from this blog

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -