SQL (Structured Query Language) Question:
Download Questions PDF

What is the use of DESC in SQL?

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 Interview Questions And Answers PDF

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?