READ Free Dumps For Oracle- 1z0-007
Question ID 7919 | Examine the structure of the EMPLOYEES table: EMPLOYEE_ID NUMBER Primary Key FIRST_NAME VARCHAR2(25) LAST_NAME VARCHAR2(25) DEPARTMENT_ID NUMBER SALARY NUMBER What is the correct syntax for an inline view? |
Option A | SELECT a.last_name, a.salary, a.department_id, |
Option B | maxsal FROM employees a, (SELECT department_id, max(salary)maxsal FROM employees GROUP BY department_id) b WHERE a.department_id = b.department_id AND a.salary < b.maxsal; |
Option C | SELECT a.last name, a.salary, a.department_id FROM employees a WHERE a.department_id IN (SELECT department_id FROM employees b GROUP BY department_id having salary = (SELECT max(salary) from employees)) |
Option D | SELECT a.last_name, a.salary, a.department_id FROM employees a WHERE a.salary = (SELECT max(salary) FROM employees b WHERE a.department _ id = b.department _ id); |
Option E | SELECT a.last_name, a.salary, a.department_id FROM employees a WHERE (a.department_id, a.salary) IN (SELECT department_id, a.salary) IN (SELECT department_id max(salary) FROM employees b GROUP BY department_id ORDER BY department _ id); |
Correct Answer | A |
Question ID 7920 | Which clause would you use in a SELECT statement to limit the display to those employees whose salary is greater then 5000? |
Option A | ORDER BY SALARY > 5000 |
Option B | GROUP BY SALARY > 5000 |
Option C | HAVING SALARY > 5000 |
Option D | WHERE SALARY > 5000 |
Correct Answer | D |