PostgreSQL에서 다음 명령을 실행한 결과로 옳은 것은?
CREATE VIEW active_orders AS SELECT * FROM orders WHERE status = 'ACTIVE';
CREATE VIEW active_order_summary AS SELECT customer_id, count(*) FROM active_orders GROUP BY customer_id;
DROP VIEW active_orders CASCADE;정답 3번
active_order_summary는 active_orders에 의존한다. DROP VIEW active_orders CASCADE는 대상 뷰와 그 뷰에 의존하는 객체를 연쇄 삭제하므로 두 뷰가 모두 삭제되어 ③이 정답이다.
콘텐츠 정보
- 자료 유형
- 편집복원
- 검수 상태
- 내용 검수 완료
- 해설 작성·검수
- 정처LAB 편집 기준
- 최종 검수
- 2026-07-26