Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
eem_2055
Yak Posting Veteran
69 Posts |
Posted - 2010-07-04 : 21:49:00
|
| Hi everyone,Can you help me?I want to sum the amount of each accounts, how can I query this?Cust_ID Amount0001 100.000001 50.000001 1.250001 2.340002 400.000002 535.00Many thanks,Dudz |
|
|
robvolk
Most Valuable Yak
15732 Posts |
Posted - 2010-07-04 : 21:54:10
|
| SELECT Cust_ID, Sum(Amount) FROM myTable GROUP BY Cust_ID |
 |
|
|
eem_2055
Yak Posting Veteran
69 Posts |
Posted - 2010-07-04 : 22:04:07
|
| Thanks... :) |
 |
|
|
|
|
|