I have trouble in the SQL query to display the data fields whose records are above 29-12-2018
on Oracle
,
SELECT * FROM
data
WHERE date BETWEEN('29-12-2018' AND '01-01-2019')
ORDER BY datetime DESC
You need to use to_date()
function to convert your string to a date.
SELECT * FROM
data
WHERE "date" > to_date('29-12-2018','DD-MM-YYYY')
ORDER BY datetime DESC