I am trying to return all the records on a certain date and less than an exact time
my SQL looks like this
- WHERE date = '2014-08-28'
- and UNIX_TIMESTAMP(time) < '14:48:22'
This returns all the time records and doesn't cutoff the time at the specified point
- WHERE date = '2014-08-28'
- and time < '14:48:22'
This query cuts off the time at '14:28:22' but also cuts off all time before '10:00:00'
I have also tried the cast() but no luck