My MaintenanceLog table has an entry with following data in a row. Name: Toney Mirra ActualDateTime: 2007-02-16 12:55:02.867 PlannedDateTime: 2008-12-05 20:08:57.000 Comments: Sample Entry
But when I run the following query it doesnt return any value. I think there is some problem in DateTime format. Can anyone help me fixing this?
select Comments from MaintenanceLog where ActualDateTime = '2/16/2007 12:55:02 PM' and PlannedDateTime = '12/5/2008 8