2. 사원 'SEO JOHN'의 직무와 정보
STUDY/ORACLE_SQL_2일차 2007. 6. 22. 13:40사원 'SEO JOHN'의 직무는 무엇인가?
SELECT job_title
FROM employees e JOIN jobs j
ON e.job_id = j.job_id
WHERE UPPER(last_name) = 'SEO'
AND UPPER(first_name) = 'JOHN';
FROM employees e JOIN jobs j
ON e.job_id = j.job_id
WHERE UPPER(last_name) = 'SEO'
AND UPPER(first_name) = 'JOHN';
사원 'SEO JOHN'의 정보를 얻자.
사번 사원이름 부서이름 직무이름
SELECT employee_id, last_name, department_name, job_title
FROM jobs j JOIN employees e
ON j.job_id = e.job_id
JOIN departments d
ON d.department_id = e.department_id
WHERE UPPER(last_name) = 'SEO'
AND UPPER(first_name) = 'JOHN';