I'm relatively new to Oracle SQL and I am wondering if anyone is able to help me out.
I am attempting to return the first 50 rows from the History column of my Employee table. I am trying to return the instances where 'desk' is located in history after the first use of 'on'.
Thanks in advance.
SELECT SUBSTR(History, INSTR(History, ' on ') + 3) AS subject
FROM Employee
WHERE subject LIKE '%desk%'
AND ROWNUM <= 50;