Topic: Oracle Certified Professional Exams (OCP & OCA) >> Which SQL statement produces an error?
|
Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property.
You may review the entire Oracle Certification Program Candidate Agreement online Here.
|
|
|
|
| Title: Which SQL statement produces an error? |
| naidu |
Posted: Dec 27, 2006 10:04:44 AM |
Total Post: 85
Joined: Nov, 2006
|
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
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:
|
|
|
Jayanta |
| Posted: Dec 27, 2006 11:01:55 AM | |
|
Total Post: 479
Joined: Feb, 2006
|
|
|
|
|
| Time Zone: EDT |
Send this thread to your friend |
|
|
|
|
Forum Rules & Description
Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user
|
| |
Get FREE Magazines
|
Top 10 Forum User
|
| Murtuja Khokhar | 816 |
| Mohammed Taj | 709 |
| Jayanta Sur | 479 |
| positive fanatic | 418 |
| Vigyan Kaushik | 386 |
| Gitesh Trivedi | 322 |
| Gopu Gopi | 242 |
| neeraj sharma | 240 |
| Ramesh Jois | 226 |
| Bishal Khetan | 205 |
|
|