Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
 

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






 
e

 Time Zone: EDT

  




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 Khokhar816
  Mohammed Taj709
  Jayanta Sur479
  positive fanatic418
  Vigyan Kaushik386
  Gitesh Trivedi322
  Gopu Gopi242
  neeraj sharma240
  Ramesh Jois226
  Bishal Khetan205






oracle Mag



  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor
Confio Software