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
Illegal mix of collations (utf8_general_ci,IMPLICIT) and (latin1_swedish_ci,NUMERIC) for operation '<' – brucemccampbell Dec 15 '14 at 15:31
http://stackoverflow.com/questions/4714899/mysql-compare-between-time?rq=1 – brucemccampbell Dec 15 '14 at 15:39