With a select clause I come up with the follwing data:
USER DATE HOURS SOLD user1 2012-04-17 3.850000 100 user1 2012-04-17 3.850000 100 user1 2012-04-18 3.850000 100 user1 2012-04-18 3.850000 50 user2 2012-03-30 3.000000 210 user2 2012-03-30 3.000000 100 user2 2012-03-31 3.000000 100
What I would like to have is the following:
USER DATE HOURS SOLD user1 2012-04-17 3.850000 200 user1 2012-04-18 3.850000 150 user2 2012-03-30 3.000000 310 user2 2012-03-31 3.000000 100
If I try to use the SUM(Sold) rather than SOLD I get the total repeated in each like. It is not separating it by date. I was hoping someone could point me in the right direction as to how this can be achieved.

New Topic/Question
Reply


MultiQuote





|