Benjiga
04-01-2006, 03:40 PM
I have a problem that I'm sure is simple to solve but I can't seem to find the answer....
I have a table that contains the following data:
column1 column2 column3
100 5.75 3
100 5.75 1
100 5.75 5
130 3.00 1
130 3.00 4
What I need is to sum column3 based on column1 and I want it to return to rows
column1 column2 column3
100 5.75 9
130 3.00 5
As I write this I am thinking some sort of Select Distinct and Sum(column3) something along those lines...
Any help appreciated.
Thanks.
I have a table that contains the following data:
column1 column2 column3
100 5.75 3
100 5.75 1
100 5.75 5
130 3.00 1
130 3.00 4
What I need is to sum column3 based on column1 and I want it to return to rows
column1 column2 column3
100 5.75 9
130 3.00 5
As I write this I am thinking some sort of Select Distinct and Sum(column3) something along those lines...
Any help appreciated.
Thanks.