Is it possible to take the row sum of the all rows from a datatable in SQL. I have one datatable like this
Date col1 col2 col3
30/7/2012 5 2 3
31/7/2012 2 3 5
01/08/2012 2 4 1
but i want to achieve like this by creating one column name Total
like:
Date Total col1 col2 col3
30/7/2012 10 5 2 3
31/7/2012 9 1 3 5
01/08/2012 7 2 4 1
Is it Possible? If yes please help me for the same.
try this: