I'm working on some SQL developer queries and I keep getting this error. Ive looked online but I cant see to see why my syntax bring a "SQL command not properly ended error". The error is showing up on the line that has "FROM lgemployee as e". Any help in the right direction would be greatly appreciated.
SELECT e.emp_num, emp_lname, emp_fname, sal_amount
FROM lgemployee as e
NATURAL JOIN lgsalary_history
WHERE sal_from = (SELECT min(sal_from))
FROM lgsalary_history as s2
WHERE (e.emp_num = s2.emp_num)
ORDER BY e.emp_num;