Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a view in which i have multiple columns i have to make a query in i want to match to colums of dates.
means attendence time in is greater then shift time then it will show employee data from views. how will i do it.
having problem in where clause

where convert(datetime, ShiftTimeIn) <= convert(datetime, CreatedOn);
Posted

1 solution

WHERE Convert(varchar,ShiftTimeIn,105) <= Convert(varchar,CreatedOn,105)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900