Check sibling questions

This question asked in CBSE SQP-2020

Which keyword is used to sort the records of a table in descending order?

 

Answer:

The keyword DESC is used to sort the records of a table in descending order.

Syntax: SELECT column1 , column2, …   

              FROM table_name  

              ORDER BY column1, column2, ... DESC ;

 

Syntax: SELECT column1 , column2, …   

              FROM table_name  

              ORDER BY column1, column2, ... DESC ;

 

Example:

 


Transcript

This question asked in CBSE SQP-2020 Which keyword is used to sort the records of a table in descending order? Answer: The keyword DESC is used to sort the records of a table in descending order. Syntax: SELECT column1, column2, … FROM table_name ORDER BY column1, column2, ... DESC; Syntax: SELECT column1, column2, … FROM table_name ORDER BY column1, column2, ... DESC; Example:

  1. Computer Science - Class 12
  2. Chapter 9 - Structured Query Language

About the Author

Davneet Singh

Davneet Singh has done his B.Tech from Indian Institute of Technology, Kanpur. He has been teaching from the past 14 years. He provides courses for Maths, Science and Computer Science at Teachoo