Sort the Rows in SQL.
Submitted by: AdministratorSort 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
Submitted by: Administrator
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
Submitted by: Administrator
Read Online SQL and PL/SQL Job Interview Questions And Answers
Top SQL and PL/SQL Questions
☺ | The IN operator may be used if you know the exact value you want to return for at least one of the columns. |
☺ | What is the use of CASCADE CONSTRAINTS? |
☺ | What is Posting? |
☺ | What is Character Functions? |
☺ | What is the SQL? |
Top Databases Programming Categories
☺ | RDBMS Interview Questions. |
☺ | SQL Interview Questions. |
☺ | SSRS Interview Questions. |
☺ | Database Administrator (DBA) Interview Questions. |
☺ | Sybase Interview Questions. |