Home » MYSQL » MySQL ORDER BY » Question
  1. What is the significance of “ORDER BY” in the given query?
    SELECT emp_id, fname, lname
    FROM Employee
    ORDER BY emp_id;
    1. Data of emp_id will be sorted in descending order
    2. Data of emp_id will be sorted in ascending order
    3. Data of emp_id will be sorted
    4. All of above
    5. None of these
Correct Option: C

Sorting in ascending or descending order depends on keyword “DESC” and “ASC”.



Your comments will be displayed only after manual approval.