3
Answers

Oracle query with group by with result set?

Joseph K

Joseph K

7y
271
1
I have one requirement where the table will be like this

---------------------
Name | Amount |
---------------------
Raju | 2000 |
----------------------
Rajesh | 4000 |
----------------------
Raju | 4000 |
--------------------
Rajesh | 10000 |
----------------------

But i need a values where result set will be like this
------------------
Raju | Rajesh |
-----------------
6000 | 14000 |
---------------
 
 
when i tried group by it will result like this

-------------------
|Raju | 6000 |
-----------------
Rajesh | 14000 |
----------------- 
 
 
 
Answers (3)