-1

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".

Rahul Tripathi
  • 168,305
  • 31
  • 280
  • 331
Ani_stuck
  • 7
  • 1

1 Answers1

0

You can try like this:

SELECT *
  FROM (SELECT concat(FIRSTNAME,LASTNAME) AS NAME, HIREDATE from EMPLOYEE ORDER BY HIREDATE  )
 WHERE ROWNUM = 1;
Rahul Tripathi
  • 168,305
  • 31
  • 280
  • 331
  • Please check for duplicates and close the question before answering questions that are obvious duplicates. – MT0 Dec 10 '22 at 23:53