I am getting records from database like this in a while loop
I need to get the sum of second column grouped by empid .I can achieve this by giving group by clause in sql query but i cant give group by clause in query since the query is a union query .How can we group the records using
java .My desired output for above query is
Is there any Util class for group by?.
Regards
vasu