0
You might get this by using the function PIVOT
oracle:
https://www.techonthenet.com/oracle/pivot.php
SELECT * FROM
(
SELECT carro, ano, preco
FROM sua_tabela
)
PIVOT
(
sum(preco)
FOR ano IN (2016, 2017, 2018)
)
ORDER BY carro;
0
1
You might get this by using the function PIVOT
oracle:
https://www.techonthenet.com/oracle/pivot.php
SELECT * FROM
(
SELECT carro, ano, preco
FROM sua_tabela
)
PIVOT
(
sum(preco)
FOR ano IN (2016, 2017, 2018)
)
ORDER BY carro;
Browser other questions tagged sql oracle
You are not signed in. Login or sign up in order to post.