+ 1
Can we use Order by on a column that is not part of selected columns?
Order by SQL
2 odpowiedzi
+ 2
Yes you can.
For example you have a database "people" with columns: name, surname, age.
It is correct query:
SELECT name, surname FROM people ORDER BY age;
0
Okay