P

Priyanka Tomar • 35.28K Points
Coach

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

  • (A) Data of emp_id will be sorted in descending order
  • (B) Data of emp_id will be sorted in ascending order
  • (C) Data of emp_id will be sorted in either ascending or descending order
  • (D) All of the mentioned
  • Correct Answer - Option(B)
  • Views: 31
  • Filed under category MySQL

Explanation by: Priyanka Tomar
This MySQL command selects the employee ID (emp_id), first name (fname), and last name (lname) from the table called person.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics