SQL and PL/SQL Question:

Sort the Rows in SQL.

SQL and PL/SQL Interview Question
SQL and PL/SQL Interview Question

Answer:

Sort the Rows:
SELECT column1, column2, ... FROM table_name ORDER BY columnX, columnY, ..
SELECT column1, column2, ... FROM table_name ORDER BY columnX DESC
SELECT column1, column2, ... FROM table_name ORDER BY columnX DESC, columnY ASC


Previous QuestionNext Question
The Delete Statements in SQL.The IN operator may be used if you know the exact value you want to return for at least one of the columns.