Forum Moderators: open
so lets say i do this
SELECT *, MAX(date) FROM subscriptions GROUP BY user
it will return the correct MAX(date), but all the other columns do not correspond to that particular table row. i THOUGHT i should be able to do this...
SELECT *, MAX(date) FROM subscriptions GROUP BY user HAVING date = MAX(date)
i'm not sure why its not returning right....but it seems like its ignoring all entries for users that have more than one subscription.
i was thinking maybe i need to do a subquery, which i've tried but i can't get that either. i'm stumped guys.