Posts by Matheus • 1 point
2 posts
-
0
votes3
answers44
viewsA: Return larger field to ID
I got it this way: SELECT A.controle, A.codprod, A.vlrvenda FROM TGFEXC A LEFT JOIN TGFEXC B ON A.codprod = B.codprod AND B.nutab > A.nutab where B.nutab IS NULL Thank you all!…
-
0
votes3
answers44
viewsQ: Return larger field to ID
Good morning, I need some guidance regarding the following situation: In this table I need to return only the MAX(nutab) for each codprod and control. I tried using the MAX, but so only returned…