About
Pricing
Community
Teams
Start Free Trial
Log in
steven_gould
asked on
11/13/2013
SQL View that SUMs columns
I have a table that has ID numbers and financial transactions that I am trying to sum together. Basically I want to turn this:-
1 | 100 | 200 | 500
2 | 200 | 400 | 800
1 | 400 | 200 | 100
3 | 100 | 200 | 100
3 | 500 | 200 | 400
into this:-
1 | 500 | 400 | 600
2 | 200 | 400 | 800
3 | 600 | 400 | 500
..using a SQL view under SQL 2005. Is this possible and can someone advise on the best way to make it happen?
Thanks
Microsoft SQL Server
Databases
2
2
Last Comment
Jim Horn
8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Carl Tawn
11/13/2013
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Jim Horn
11/13/2013
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck