1. I am trying to get rows where the time is equal 08:30 AM
2. Need to get all rows where the date is equal 30/12/1899
The field is called PA_TIME and table is FPATS, the field looks like this
28/10/2004 1:30:00 PM
I have tried using DATEPART but can't get it to work, so if anyone has more of an idea than me that would be great;
SELECT PA_TIME
FROM FPATS
WHERE DATEPART(TIME,PA_TIME )='08:30:00 AM