Hi
I have been trying to run a query to return all the previous days entries. I cant use interval - 1 day because lets say the last entry was on friday and I am running the query on monday, it would return 0 results.
This is the select statement I have so far:
select * from timesheet where date(dateTimeStamp) = date(now()) order by dateTimeStamp desc;
I am out of ideas how to manipulate it. Any ideas appreciated.
Many thanks
I have been trying to run a query to return all the previous days entries. I cant use interval - 1 day because lets say the last entry was on friday and I am running the query on monday, it would return 0 results.
This is the select statement I have so far:
select * from timesheet where date(dateTimeStamp) = date(now()) order by dateTimeStamp desc;
I am out of ideas how to manipulate it. Any ideas appreciated.
Many thanks