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 statement shows the department ID, minimum salary, and maximum salary paid in that department, only of the minimum salary is less then 5000 and the maximum salary is more than 15000?

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 statement shows the department ID, minimum salary, and maximum salary paid in that department, only of the minimum salary is less then 5000 and the maximum salary is more than 15000?
 naidu  Posted: Dec 28, 2006 09:26:11 AM

 Total Post: 85
 Joined: Nov, 2006






 Examine the description of the EMPLOYEES table:
EMP_ID NUMBER (4) NOT NULL
LAST_NAME VARCHAR2 (30) NOT NULL
FIRST_NAME VARCHAR2 (30)
DEPT_ID NUMBER (2)
JOB_CAT VARCHAR2 (30)
SALARY NUMBER (8, 2)
Which statement shows the department ID, minimum salary, and maximum salary paid in that department, only of the minimum salary is less then 5000 and the maximum salary is more than 15000?
A. SELECT dept_id, MIN (salary), MAX (salary)
FROM employees
WHERE MIN (salary) < 5000 AND MAX (salary) > 15000;
B. SELECT dept_id, MIN (salary), MAX (salary)
FROM employees
WHERE MIN (salary) < 5000 AND MAX (salary) > 15000
GROUP BY dept_id;
C. SELECT dept_id, MIN (salary), MAX (salary)
FROM employees
HAVING MIN (salary) < 5000 AND MAX (salary) > 15000;
D. SELECT dept_id, MIN (salary), MAX (salary)
FROM employees
GROUP BY dept_id
HAVING MIN (salary) < 5000 AND MAX (salary) > 15000;
E. SELECT dept_id, MIN (salary), MAX (salary)
FROM employees
GROUP BY dept_id, salary
HAVING MIN (salary) < 5000 AND MAX (salary) > 15000;
Answer:

 Jayanta
Posted: Dec 28, 2006 10:56:01 AM  

 Total Post: 479
 Joined: Feb, 2006






 
d

 naidu
Posted: Dec 29, 2006 12:38:39 AM  

 Total Post: 85
 Joined: Nov, 2006






 
thank u

with regards
rajesh kodanda

 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 Khokhar814
  Mohammed Taj694
  Jayanta Sur479
  Vigyan Kaushik386
  positive fanatic361
  Gitesh Trivedi322
  Gopu Gopi242
  neeraj sharma228
  Ramesh Jois226
  snehalatha p169






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