Home » MYSQL » MySQL ORDER BY » Question
  1. If emp_id contain the following set {9, 7, 6, 4, 3, 1, 2}, what will be the output on execution of the given query?
    SELECT emp_id
    FROM Employee
    ORDER BY emp_id;
    1. {2, 1, 4, 3, 7, 9, 6}
    2. {9, 7, 6, 4, 3, 1, 2}
    3. {1, 2, , 3, 4, 6, 7, 9}
    4. All of above
    5. None of these
Correct Option: C

“ORDER BY” clause sort the emp_id in the result set.



Your comments will be displayed only after manual approval.