Here's the query
SELECT concat(FIRSTNAME,LASTNAME) AS NAME, HIREDATE from EMPLOYEE ORDER BY HIREDATE
WHERE ROWNUM = 1;
I've been trying to use rownum function but I keep getting the error - "ORA-00933: SQL command not properly ended".
Here's the query
SELECT concat(FIRSTNAME,LASTNAME) AS NAME, HIREDATE from EMPLOYEE ORDER BY HIREDATE
WHERE ROWNUM = 1;
I've been trying to use rownum function but I keep getting the error - "ORA-00933: SQL command not properly ended".
You can try like this:
SELECT *
FROM (SELECT concat(FIRSTNAME,LASTNAME) AS NAME, HIREDATE from EMPLOYEE ORDER BY HIREDATE )
WHERE ROWNUM = 1;