Interviewer And Interviewee Guide

SQL Interview Question:

What is the use of DESC in SQL?

Submitted by: Administrator
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.
Submitted by: Administrator

Read Online SQL Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.