I need to select for each department a salary of a person with the longest record of service. I suspect that analytic functions (FIRST_VALUE?) may be used in some way but can't grasp how.
The real task is more complex and I must avoid accessing "EMP" table more then once per "DEPT" row.
Regards, Dima
The real task is more complex and I must avoid accessing "EMP" table more then once per "DEPT" row.
Regards, Dima