I have an table RECORDS in SQLITE where it contains 2 columns date varchar, time varchar, where date column is in format 2017-01-20 and time format 15:43
CREATE TABLE "RECORDS" (
"date" VARCHAR, /*2017-01-23*/
"time" VARCHAR /*14:00*/
)
Is there a way to select all the records from the table Between 2017-01-23 05:00 AND 2017-01-24 02:00
Here is the sql Fiddle
I tried (
SELECT * RECORDS
WHERE date >= date('2017-01-23') AND date <= date('2017-01-24')
ORDER BY DATE,TIME
but I can't select also the 05:00 - 02:00