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 DESC;
    1. {1, 2, 3, 4, 6, 7 , 9}
    2. {2, 1, 3, 4, 6, 7, 9}
    3. {9, 7, 6, 4, 3, 1, 2}
    4. All of above
    5. None of these
Correct Option: C

“DESC” clause sort the id in the descending order.



Your comments will be displayed only after manual approval.