I have query like this:
select empid,transDateTime
from Trans_Details
where empId='16510'
and transDateTime >='2015-05-07 00:00:00.000'
and transDateTime< ='2015-05-07 23:59:59.000'
I'm getting output like this:
empid transDateTime
--------------- -----------------------
16510 2015-05-07 08:51:56.000
I have same query without time, but that one doesn't return any result:
select empid, transDateTime
from Trans_Details Td
where td.empId='16510'
and Td.transDateTime='2015-05-07'
What's the issue? This time I want to get same result.