Is there any error in the following MySQL command? [code] SELECT emp_id, title, start_date, fname, fed_id FROM person ORDER BY 2, 5; [/code]

Is there any error in the following MySQL command?
Code:
SELECT emp_id, title, start_date, fname, fed_id
FROM person
ORDER BY 2, 5;
A. Yes
B. No
C. Depends
D. None of the mentioned
 
Answer: b
Explanation: “ORDER BY” clause can be used with Place holders. Here “2” represent column “title” and “5” represent “fed_id”. Therefore it looks like “ORDER BY title, fed_id”.
 

Tìm kiếm

Back
Top