I am trying to get the last entry from my database based off the date entered. The sql is not working exactly as I want it. Here is my sql
SELECT TOP 1 * FROM BILLS_HITS ORDER BY DATETIMEADD DESC
Can anyone see anything wrong with it? The sql returns a record with the date - "6/6/2012 7:10:11 AM" and not one that is for 6/10/2012.