sql server - How can I add months onto a given date in a SQL Table -


i'm trying write function represent when employees (agents) 6 month review take place, using date arithmetic adding on 6 months hire date , can't seem right

select empfirstname, emplastname, cast(datehired, + 6 month) reviewdate employees 

select empfirstname, emplastname,dateadd(month, 6, datehired) datehired employees 

Comments

Popular posts from this blog

minify - Minimizing css files -

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -