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