SQL (Structured Query Language) Question:

What is the use of DESC in SQL?

Tweet Share WhatsApp

Answer:

DESC has two purposes. It is used to describe a schema as well as to retrieve rows from table in descending order.
Explanation :
The query SELECT * FROM EMP ORDER BY ENAME DESC will display the output sorted on ENAME in descending order.

Download SQL PDF Read All 172 SQL Questions
Previous QuestionNext Question
Which function is used to find the largest integer less than or equal to a specific value?TRUNCATE TABLE EMP; DELETE FROM EMP; Will the outputs of the above two commands differ?