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
|
|
|
|
|
naidu |
| Posted: Dec 29, 2006 12:38:39 AM | |
|
Total Post: 85
Joined: Nov, 2006
|
thank u
with regards
rajesh kodanda
|
|
|
|
|
| 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 | 814 |
| Mohammed Taj | 694 |
| Jayanta Sur | 479 |
| Vigyan Kaushik | 386 |
| positive fanatic | 361 |
| Gitesh Trivedi | 322 |
| Gopu Gopi | 242 |
| neeraj sharma | 228 |
| Ramesh Jois | 226 |
| snehalatha p | 169 |
|
|