I have a mysql database with several records. each record has an name. It is not unique , meaning that the same name appears many times in the table as the values are updated.
How can i create a query that will return only the latest names that were updated over the last 5 min. (every name is updated many times per minute. I want only the latest entry within the 5 min window)
I have a mysql database with several records. each record has an name. It
Share
If you add a
TIMESTAMPcolumn, you should be able to get the newest for a name that was added in the past 5 minutes by doing a query like so:Attempt #2: