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 |
esthera
Master Smack Fu Yak Hacker
1410 Posts |
Posted - 2006-10-25 : 06:32:01
|
I have a query as followsselect name,address,amount from customersis there anyway in sql I can adjust the above query that it should do as above but add on the bottom a row with the total amount? |
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2006-10-25 : 06:38:13
|
Where do you want to show data?select name,address,amount from customersUnion allselect '','',SUM(amount) from customersAlso, Read about ROLLUP in sql server help fileMadhivananFailing to plan is Planning to fail |
 |
|
|
|
|