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

Popular posts from this blog

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 -

minify - Minimizing css files -