Guest_imported
New member
- Jan 1, 1970
- 0
I have a table which columns like "category", "Amount" and some other half a dozen columns.
i want an SQL query which will select ALL the columns of the table ..grouped by "category" and giving Sum of "Amount" for that category.
Desired op shud be like this :
"Category" "Amount" "SumAmountsbycategory" col3
A 100 150
A 50 150
B 20 60
B 40 60
Can any one help me ?
i want an SQL query which will select ALL the columns of the table ..grouped by "category" and giving Sum of "Amount" for that category.
Desired op shud be like this :
"Category" "Amount" "SumAmountsbycategory" col3
A 100 150
A 50 150
B 20 60
B 40 60
Can any one help me ?