Code, reference, value;
Performing a simple query Returns some data:
CODIGO REFERENCIA VALOR
----------------------------------------
AB6739 11/2017 933,46
AB6858 12/2017 933,46
AB2486 01/2018 933,46
select * from table(pivot('select * from nome_da_view'));
CODIGO 11/2017 12/2017 01/2018
--------------------------------------------------
AB6739 933,46
AB6858 933,46
AB2486 933,46
ORA-00904 - "PIVOT": identificador inválido.
Follow the link where I got the example above: https://technology.amis.nl/2006/05/24/d ... s-thunder/
Please, someone helps me, I'm already beginning to believe that this pivot in Oracle is a farce.