Q. What is the significance of "ORDER BY emp_id DESC" in the following MySQL command?
SELECT emp_id, fname, lname
FROM person
ORDER BY emp_id DESC;

  • (A) Data of emp_id will be sorted in descending order
  • (B) reads
  • (C) Data of emp_id will be sorted in either ascending or descending order
  • (D) All of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (A) Data of emp_id will be sorted in descending order
Explanation: The code you see uses "ORDER BY emp_id DESC" to arrange the data. This part tells MySQL to sort the results of the query. Let's break down what it means:
Explanation by: Praveen Singh
The code you see uses "ORDER BY emp_id DESC" to arrange the data. This part tells MySQL to sort the results of the query. Let's break down what it means:

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
127
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Praveen Singh
Publisher
πŸ“ˆ
95%
Success Rate