How would I make it so that I can search a table and get the values where the date difference equals 1
an example of what I want to do is
SELECT * FROM table where DATEDIFF('2006-04-01','2006-03-01') = 1
I found this but I don't know how to implement it or if there is a better way. Still looking.
SELECT DATEDIFF('2006-04-01','2006-03-01')
also found:
SELECT OrderId,DATE_SUB(2014-11-22 13:23:44.657,INTERVAL 5 DAY) AS SubtractDate
FROM Orders
but I want to get a result when the time difference between both dates is 1