Vidyalelo
MySQL · Q764

MySQL

Programming · MySQL · question 764

Q764

Which keyword is used for sorting the data in descending order in Mysql?

A.
DESC
Answer
B.
ASC
C.
ALTER
D.
MODIFY

Answer: Option A

Solution

Answer: Option A
Solution:
This question asks about sorting data in a descending order in MySQL.

Think of sorting like arranging things from smallest to biggest or vice versa.

Descending order means arranging data from biggest to smallest.

Out of the given options, DESC is the keyword used for sorting data in descending order.

So the answer is Option A: DESC.

Let's look at the other options:

ASC is used for sorting data in ascending order (smallest to biggest).

ALTER and MODIFY are used for changing the structure of tables, not for sorting data.