Câu 42: C2090-612: DB2 10 DBA for zOS
Given the following view definition: CREATE VIEW EMPD AS (SELECT D.DEPTNAME, E. LASTNAME FROM DEPT D INNER JOIN EMP E ON D. DEPTNO =E.WORKDEPT); Can an UPDATE statement be used to update the view EMPD on joined tables DEPT and EMP?
Nội dung câu hỏi
Given the following view definition: CREATE VIEW EMPD AS (SELECT D.DEPTNAME, E. LASTNAME FROM DEPT D INNER JOIN EMP E ON D. DEPTNO =E.WORKDEPT); Can an UPDATE statement be used to update the view EMPD on joined tables DEPT and EMP?
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. No, an UPDATE statement against the EMPD view is not allowed at all.
- B. Yes, the view EMPD can be updated directly via an UPDATE statement.
- C. No, only a clone of the view EMPD can be updated via an UPDATE statement.
- D. Yes, an UPDATE statement against the EMPD view is allowed if an INSTEAD OF trigger is defined on the view. — đáp án hiện tại
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.
Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.