I was wondering if someone can assist me with the following. Every business can have multiple notes. I need to get ONLY the notes with the most recent date, (one) for every business. This is what I tried, however this seems to produce incorrect results:
SELECT * FROM note n
GROUP BY business_id
HAVING MAX(`time`)
Is it possible to accomplish this without the use of a subquery?
I appreciate any suggestions, thanks in advance!