Hi All,
This is probably a easy one, but for the life of me I can't seem to figure it out.
Here is my table:
Date User Amount
---------- ----- ------
01/01/2010 User1 2
01/01/2010 User2 2
01/01/2010 User1 4
01/01/2010 User2 1
01/02/2010 User2 2
01/02/2010 User1 2
01/02/2010 User2 4
01/02/2010 User2 1
So on for past several months. I need get the following results:
Date User Amount
---------- ----- ------
01/01/2010 User1 6
01/02/2010 User2 7
Basically, the user with Max(SUM(Amount))
for each day.
I would appreciate any hints you guys can offer.
Thanks.