My table looks like this:
Param_id Param_value
------------------------
A 1
B 2
C 3
D 4
.... and so on. Now I want only the values of Param_id "A" and "B".
Now I want to get the param_value in two different columns instead of two different rows. But if I use IN
clause it will return the result in two rows.
I want something like the below:
Param_value_1 Param_value_2
---------------------------------
1 2
I can't use listagg
or pivot
because they are not serving my purpose. Is there any other way to achieve this? I searched in Google but could not find any solution for this.