I have data stored in a mySQL database and I want to retrieve the rows that have been inserted between now and the beginning of the current hour: not in the last hour, since the start of the hour. For example, at 9:16 I want the rows from 9:00 until now. My time is stored in datatime format. How can I do this?
Share
The first thing that comes to mind is:
I made the assumption that you don’t have future records in the data. If so, then this comes to mind: