READ Free Dumps For Oracle- 1z0-007
Question ID 7877 | Examine the structure if the EMPLOYEES and NEW EMPLOYEES tables: EMPLOYEES EMPLOYEE_ID NUMBER Primary Key FIRST_NAME VARCHAR2(25) LAST_NAME VARCHAR2(25) HIRE_DATE DATE NEW EMPLOYEES EMPLOYEE_ID NUMBER Primary Key NAME VARCHAR2(60) Which MERGE statement is valid? |
Option A | MERGE INTO new_employees c USING employees e ON (c.employee_id = e.employee_id) WHEN MATCHED THEN UPDATE SET |
Option B | name = e.first_name ||','|| e.last_name WHEN NOT MATCHED THEN INSERT VALUES(e.employee_id, e.first_name ||', '||e.last_name); |
Option C | MERGE new_employees c USING employees e ON (c.employee_id = e.employee_id) WHEN EXIST THEN UPDATE SET |
Option D | name = e.first_name ||','|| e.last_name WHEN NOT MATCHED THEN INSERT VALUES(e.employee_id, e.first_name ||', '||e.last_name); |
Option E | MERGE INTO new employees c USING employees e ON (c.employee_id = e.employee_id) WHEN EXISTS THEN UPDATE SET |
Option F | name = e.first_name ||','|| e.last_name WHEN NOT MATCHED THEN INSERT VALUES(e.employee_id, e.first_name ||', '||e.last_name); |
Correct Answer | A |
Question ID 7878 | Which two are true about aggregate functions? (Choose two.) |
Option A | You can use aggregate functions in any clause of a SELECT statement. |
Option B | You can use aggregate functions only in the column list of the SELECT clause and in the WHERE clause of a SELECT statement. |
Option C | You can mix single row columns with aggregate functions in the column list of a SELECT statement by grouping on the single row columns. |
Option D | You can pass column names, expressions, constants, or functions as parameters to an aggregate function. |
Option E | You can use aggregate functions on a table, only by grouping the whole table as one single group. |
Option F | You cannot group the rows of a table by more than one column while using aggregate functions. |
Correct Answer | CD |