I want to make a query for this below statement:
find the ninth employee 9th highest salary
I found below query from google
SELECT * FROM EMPLOYEE e1
WHERE N-1 =
(SELECT COUNT(e2.ORIG_SALARY) FROM EMPLOYEE e2
WHERE e2.ORIG_SALARY > e1.ORIG_SALARY)
in this query what is functioning role of " e1, e2 & N-1 "
please help to describe this.
Thanks in advance