试题详情
- 单项选择题 Examine the structure of the EMPLOYEES and DEPARTMENTS tables: EMPLOYEESColumn name Data type Remarks EMPLOYEE_ID NUMBER NOT NULL, Primary Key EMP_NAME VARCHAR2 (30) JOB_ID VARCHAR2 (20) SALARY NUMBER MGR_ID NUMBER References EMPLOYEE_ID COLUMN DEPARTMENT ID NUMBER Foreign key to DEPARTMENT ID column of the DEPARTMENTS table DEPARTMENTSColumn name Data type Remarks DEPARTMENT_ID NUMBER NOT NULL, Primary Key DEPARTMENT_NAME VARCHAR2(30) MGR_ID NUMBER References MGR_ID column of the EMPLOYEES table Evaluate this SQL statement: SELECT employee_id, e.department_id, department_name, salary FROM employees e, departments d WHERE e. department_id = d.department_id; Which SQL statement is equivalent to the above SQL statement?()
A、SELECT employee_id, department_id, department_name, salary FROM employees WHERE department_id IN (SELECT department_id FROM departments);
B、SELECT employee_id, department_id, department_name, salary FROM employees NATURAL JOIN departments;
C、SELECT employee_id, d.department_id, department_name, salary FROM employees e JOIN departments d ON e.department _ id = d. department_id;
D、SELECT employee_id, department_id, department_name, Salary FROM employees JOIN departments USING (e.department_id, d.department_id);
关注下方微信公众号,在线模考后查看

热门试题
- You need to change
- Examine the descrip
- Examine the statemen
- Which two are true a
- Which four are valid
- Which is an /SQL*Plu
- Which substitution v
- What is true of usin
- Evaluate the set of
- Examine the SQL sta
- The EMPLOYEES table
- Examinethestructureo
- From SQL*Plus, you
- Which SELECT stateme
- Examine the structu
- Which constraint can
- Evaluate this SQL s
- Which view should a
- Which four statement
- Which statement adds