Scalar Subquery
2)Where 절에서의 Scalar Subquery
SELECT employee_id, last_name FROM employees e WHERE ( ( SELECT location_id FROM departments d WHERE e.department_id = d.dapartment_id) = ( SELECT location_id FROM locations I WHERE STATE_province = 'California') ) |
3) Order By 절에서의 Scalar Subquery
SELECT employee_id, last_name FROM employees e ORDER BY ( SELECT department_name FROM departments d WHERE e.department_id = d.department_id ) |
'오라클 > Oracle,SQL' 카테고리의 다른 글
오라클공부 399. 데이터 조작어 (0) | 2015.11.06 |
---|---|
오라클공부 398. Scalar Subquery (0) | 2015.11.05 |
오라클공부 396. Scalar Subquery (0) | 2015.11.05 |
오라클공부 395. Scalar Subquery (0) | 2015.11.05 |
오라클공부 394. 실습 (0) | 2015.11.05 |