Posts by user12067 • 21 points
1 post
-
2
votes1
answer788
viewsQ: Row sorting in a table with SQL SERVER
I have a table (Customer) example: ID Nome Order 1 Joao 1 2 Ana 2 3 Marta 3 4 Joana 4 The goal is to sort the contents as follows: I get the ID (@ID) from the position to change and the new position…