Posts by Danielscdf • 1 point
1 post
-
-2
votes2
answers93
viewsA: Group views in SQL Oracle
SELECT PQ.CODIGO, PQ.NOME, PQ.USO, DECODE(PA.TIPO, 'REALT', PA.ARQUIVO) AS REALT, DECODE(PA.TIPO, 'BOLET', PA.ARQUIVO) AS BOLET, DECODE(PA.TIPO, 'CHAM', PA.ARQUIVO) AS CHAM FROM PQ,…