Hello, I'm so confused with Group By using Criteria by reading tips/articles on the internet, so I hope someone can help me here...
I have a table: City, Name, Donation ------------------------ Jakarta, Helen, $20 Jakarta, Boy, $5 Jakarta, Helen, $10 Bandung, Rudy, $3 Bandung, Linda, $4
I can group by the City and sum the Donation so that the table like this: City, Donation ---------------- Jakarta, $35 Bandung, $7
but I don't know how to group by the Name and sum Donation, so that the table will be like this: City, Name, Donation ------------------------ Jakarta, Helen, $30 Jakarta, Boy, $5 Bandung, Rudy, $3 Bandung, Linda, $4
(I can group by the Name, but the City doesn't come up) please help, Faizal
|