I have a table in oracle DB containing records of students who attempted multiple papers as shown in picture:-
Now I want to get the results of one student in each row as shown in the picture below:-
I have a table in oracle DB containing records of students who attempted multiple papers as shown in picture:-
Now I want to get the results of one student in each row as shown in the picture below:-
One option is to use pivot:
Another one is to use conditional aggregation:
If you ask whether you can do that dynamically - yes, using XML, but result is then in XML format.