Table:
UserId, Value, Date. I want to get the UserId, Value for the max(Date) for each UserId. That is, the Value for each UserId that has the latest date.
How do I do this in SQL? (Preferably Oracle.)
I need to get ALL the UserIds. But for each UserId, only that row where that user has the latest date.