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

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



Your comments will be displayed only after manual approval.