Home » MYSQL » MySQL ORDER BY » Question
  1. If id contain the following set {9, 7, 6, 4, 3, 1, 2}, what will be the output on execution of the given query?
    SELECT id
    FROM student
    ORDER BY id ASC;
    1. {2, 1, 3, 4, 6, 7, 9}
    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

“ASC” clause sort the emp_id in the ascending order.



Your comments will be displayed only after manual approval.