-
Is there any error in the following query?
SELECT emp_id, title, start_date, fname, fed_id
FROM Employee
ORDER BY LEFT (fed_id, 5);
-
- Depends
- Yes
- No error
- All of above
- None of these
Correct Option: C
“ORDER BY” clause can be used with expression such as fed_id which is a social security no like 111, 111, 111 therefore we sort it taking only 5 digits from left.