Câu 32: C2090-610: DB2 10.1 Fundamentals
Given an EMPLOYEES table and a SALES table, a user wants to produce a list of all employees and their associated revenue, even if no revenue exists. WhichSQL statement will produce the desired list?
Nội dung câu hỏi
Given an EMPLOYEES table and a SALES table, a user wants to produce a list of all employees and their associated revenue, even if no revenue exists. WhichSQL statement will produce the desired list?
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. SELECT employees.name, sales.revenueFROM employeesINNER JOIN sales ON employees.id = sales.emp_id
- B. SELECT employees.name, sales.revenueFROM employeesINNER JOIN sales ON sales.emp_id = employees.id
- C. SELECT employees.name, sales.revenueFROM salesLEFT OUTER JOIN employees ON employees.id = sales.emp_id
- D. SELECT employees.name, sales.revenueFROM salesRIGHT OUTER JOIN employees ON employees.id = sales.emp_id — đá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.