How to produce sum of each column in sql?
问题 i am trying to do column wise addition in Gridview but couldn't. like i am filling gridview from store procedure which gives these values . DateTime 10Quantity 20Quantity 30Quantity 10Amount 20Amount 30Amount GrandTotal 03/10/2015 792 0 594 7920 0 17820 25740 03/10/2015 332 3 194 9990 0 28220 38739 Expected: DateTime 10Quantity 20Quantity 30Quantity 10Amount 20Amount 30Amount GrandTotal 03/10/2015 792 0 594 7920 0 17820 25740 03/10/2015 332 3 194 9990 0 28220 38739 Totals 1124 3 788 17910 0