How to use cast function to add dates in sql server -
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. can't use date add/set function this.
select empfirstname, emplastname, cast(datehired, + 6 month) reviewdate employees
just add 180 days.
select datehired + 180 reviewdate etc
Comments
Post a Comment