Posts by Jonas Granero de Almeida • 1 point
1 post
-
0
votes2
answers59
viewsA: SELECT Cursor using top1
In SQL Server I would try to use: row_number()over(partition by COD_PEDIDO order by VALOR desc)as Ordem He will "group" by COD_PEDIDO and sort the values of each Cod.…