Potentially something like this, if the DBMS supports subqueries in the Select clause:
Code:select id, sum(amount) , (sum(amount) / (select sum(amount) from XXXX))*100 from XXXX group by id
|
Results 1 to 6 of 6
Threaded View
|
Click Here to Expand Forum to Full Width |