Det kan vara frågan du letar efter:
SELECT E.EMPLOYEE_ID
,E.FIRST_NAME
,E.LAST_NAME
,E.SALARY
FROM employees E
INNER JOIN salary S ON S.LOW_SALARY <= E.SALARY
AND S.HIGH_SALARY >= E.SALARY
AND S.SALARY_ID IN (2,3)
ORDER BY E.EMPLOYEE_ID
Hoppas detta hjälper dig.