I have the following query:
select type,
date,
amount
from table;
And it gives the following result:
TYPE DATE AMOUNT
--------------------------------
A 30.6.2019 15
B 30.11.2019 20
C 22.12.2019 17
What I want to do is write a query that would return the following:
TYPE1 DATE1 AMOUNT1 TYPE2 DATE2 AMOUNT2 TYPE3 DATE3 AMOUNT3
------------------------------------------------------------------------------------------------------
A 30.6.2019 15 B 30.11.2019 20 C 22.12.2019 17
The number of rows from the first query is always going to be 3 and not more than that. I can't concatenate because I need multiple columns in the final result set. Can this be done in Oracle SQL without using PL/SQL?