- 单项选择题 Examine the structure of the EMPLOYEES table: EMPLOYEE_ID NUMBER Primary Key FIRST_NAME VARCHAR2(25) LAST_NAME VARCHAR2(25) DEPARTMENT_ID NUMBER SALARY NUMBER What is the correct syntax for an inline view?()
A、SELECT a.last_name, a.salary, a.department_id,
B、maxsal FROM employees a, (SELECT department_id, max(salary)maxsal FROM employees GROUP BY department_id) b WHERE a.department_id = b.department_id AND a.salary < b.maxsal;
C、SELECT a.last name, a.salary, a.department_id FROM employees a WHERE a.department_id IN (SELECT department_id FROM employees b GROUP BY department_id having salary = (SELECT max(salary) from employees))
D、SELECT a.last_name, a.salary, a.department_id FROM employees a WHERE a.salary = (SELECT max(salary) FROM employees b WHERE a.department _ id = b.department _ id);
E、SELECT a.last_name, a.salary, a.department_id FROM employees a WHERE (a.department_id, a.salary) IN (SELECT department_id, a.salary) IN (SELECT department_id max(salary) FROM employees b GROUP BY department_id ORDER BY department _ id);
- A
关注下方微信公众号,在线模考后查看
- Using the LIST comma
- ABC Corp. has set up
- Which two̳
- Which statement is t
- Which three statemen
- You want
- You are
- You have enabled res
- Your multitenant co
- YouareworkingonaCATD
- ViewtheExhibitandnot
- PL/SQL和数据库之间是通过()进行数
- In which case would
- Youissuedthefollowin
- Given: Which t
- Which two are charac
- You want
- What does̳
- TheEMPtablehasthesec
- You are a