I am trying to write a query where the clause is when the start date for an employee is todays date.
select * from tbl_employees
where Startdate = getdate()
The issue is that Startdate is '2014-12-09 00:00:00.000'
and the function getdate
is coming back with the date and time like '2014-12-09 08:25:16.013'
How can I write a query that only consider's the date?