Skip to content
Advertisement

How to resolve subquery return more than one value in oracle

Could somebody please help me how to achieve the following?

Table:

My output should look like

Thanks Inadvance.

Advertisement

Answer

We can use conditional aggregation with the help of ROW_NUMBER():

To create a view, use:

Advertisement