-
Is there any error in the following query?
SELECT emp_id, title, start_date, First_name, fed_id
FROM Employee
ORDER BY RIGHT (fed_id, 3);
-
- No error
- Depends
- Yes
- All of above
- None of these
Correct Option: A
“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 three digits from right.