当前位置: 代码迷 >> Oracle认证考试 >> Q7,007有关问题求解,多谢
  详细解决方案

Q7,007有关问题求解,多谢

热度:10262   发布时间:2013-02-26 00:00:00.0
Q7,007问题求解,谢谢!
Q: 7 Examine the structure of the EMP_DEPT_VU view:
Column Name Type Remarks
EMPLOYEE_ID NUMBER From the EMPLOYEES table
EMP_NAME VARCHAR2(30) From the EMPLOYEES table
JOB_ID VARCHAR2(20) From the EMPLOYEES table
SALARY NUMBER From the EMPLOYEES table
DEPARTMENT_ID NUMBER From the DEPARTMENTS table
DEPT_NAME VARCHAR2(30) From the DEPARTMENTS table
www.CertificationKing.com
- 5 -
Which SQL statement produces an error?



A. SELECT *
FROM emp_dept_vu;
B. SELECT department_id, SUM(salary)
FROM emp_dept_vu
GROUP BY department_id;
C. SELECT department_id, job_id, AVG(salary)
FROM emp_dept_vu
GROUP BY department_id, job_id;
D. SELECT job_id, SUM(salary)
FROM emp_dept_vu
WHERE department_id IN (10,20)
GROUP BY job_id
HAVING SUM(salary) > 20000;
E. None of the statements produce an error; all are valid.


Answer: E

------解决方案--------------------------------------------------------
。。。。。E不就是说没有任何语句会报错么
  相关解决方案