Home » MYSQL » MySQL ORDER BY » Question
  1. Is there any error in the following query?
    SELECT emp_id, title, start_date, fname, fed_id
    FROM Employee
    ORDER BY 3, 4;
    1. No
    2. Depends
    3. Yes
    4. All of above
    5. None of these
Correct Option: A

“ORDER BY” clause can be used with Place holders. Here “3” represent column “title” and “4” represent “fed_id”. Therefore it look like “ORDER BY title, fed_id”.



Your comments will be displayed only after manual approval.