I have table with more than 34 columns.
I need to aggregate(sum) of the columns.
To find:
- Sum of 2 columns
- Sum of remaining columns except.
Please find the table structure with following columns.
S.NO
Handling charge
Storage Charge
...
..
.... 34th column charge
I have more than 3000 rows of records based on above mentioned columns.
May I know how to query or calculate above mentioned find.
For Find 1 Query:
**Update dbo.tablename
set columnname isnull(charge1,0)+isnull(charge2,0)**
I am struggling to find find 2:
Can anyone help?