Posts by Rui Caeiro • 1 point
1 post
-
0
votes1
answer253
viewsA: Inner Join without duplicating lines, bring the first value found
Try using the PIVOT clause, for example: https://www.techonthenet.com/oracle/pivot.php In practice it will be something like this: SELECT * FROM ( SELECT NR_ANO_MES, nr_contrato,NM_PRODUTO FROM…