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
Post a Comment