I have a datetime field called LastChangeTimestamp that has a format like 2015-08-20 10:24:59
I basically want to return all results from the current day back 7 days. I've gotten to where I can use the now() command but am returning zero results I suspect because the system is trying to match the date and time down to the seconds back maybe? How do I return records from the current date only (no time) using the datetime field and go back 7 days?
WHERE LastChangeTimestamp < unix_timestamp(now() - interval 7 day)