试题详情
单项选择题 Click the Exhibit button and examine the data in the EMPLOYEES and DEPARTMENTS tables. You want to retrieve all employees, whether or not they have matching departments in the departments table. Which query would you use?()

A、SELECT last_name, department_name FROM employees NATURAL JOIN departments;

B、SELECT last_name, department_name FROM employees JOIN departments ;

C、SELECT last_name, department_name FROM employees e JOIN departments d ON (e.department_id = d.department_id);

D、SELECT last_name, department_name FROM employees e RIGHT OUTER JOIN departments d ON (e.department_id = d.department_id); 

E、SELECT last_name, department_name FROM employees FULL JOIN departments ON (e.department_id = d.department_id);

F、SELECT last_name, department_name FROM employees e LEFT OUTER JOIN departments d ON (e.department_id = d.department_id);

  • F
  • 关注下方微信公众号,在线模考后查看

热门试题