1z0-071 Practice Test practice questions, page 6 of 11, with answer review and explanations.
Question 26
Which three statements are true about single-row functions? (Choose three.)
They return a single result row per table.
They can be nested to any level.
They can accept only one argument.
The argument can be a column name, variable, literal or an expression.
They can be used only in the WHERE clause of a SELECT statement.
The data type returned can be different from the data type of the argument.
Question 27
Which two statements are true about *_TABLES views? (Choose two.)
USER_TABLES displays all tables owned by the current user.
You must have ANY TABLE system privileges, or be granted object privileges on the table, to view a table in USER_TABLES.
All users can query DBA_TABLES successfully.
You must have ANY TABLE system privileges, or be granted object privileges on the table, to view a table in DBA_TABLES.
ALL_TABLES displays all tables owned by the current user.
You must have ANY TABLE system privileges, or be granted object privileges on the table, to view a table in ALL_TABLES.
Question 28
Which two statements are true about conditional INSERT ALL? (Choose two.)
Each row returned by the subquery can be inserted into only a single target table.
A single WHEN condition can be used for multiple INTO clauses.
Each WHEN condition is tested for each row returned by the subquery.
It cannot have an ELSE clause.
The total number of rows inserted is always equal to the number of rows returned by the subquery.
Question 29
Which two statements are true about the COUNT function? (Choose two.)
COUNT(*) returns the number of rows in a table including duplicate rows and rows containing NULLs in any column.
It can only be used for NUMBER data types.
COUNT(DISTINCT inv_amt) returns the number of rows excluding rows containing duplicates and NULLs in the INV_AMT column.
COUNT(inv_amt) returns the number of rows in a table including rows with NULL in the INV_AMT column
A SELECT statement using the COUNT function with a DISTINCT keyword cannot have a WHERE clause.
Question 30
The EMPLOYEES table contains columns EMP_ID of data type NUMBER and HIRE_DATE of data type DATE. You want to display the date of the first Monday after the completion of six months since hiring. The NLS_TERRITORY parameter is set to AMERICA in the session and, therefore, Sunday is the first day of the week. Which query can be used?
SELECT emp_id, ADD_MONTHS(hire_date, 6), NEXT_DAY('MONDAY') FROM employees;
SELECT emp_id, NEXT_DAY(ADD_MONTHS(hire_date, 6), 1) FROM employees;
SELECT emp_id, NEXT_DAY(MONTHS_BETWEEN(hire_date, SYSDATE), 6) FROM employees;
SELECT emp_id, NEXT_DAY(ADD_MONTHS(hire_date, 6), 'MONDAY') FROM employees;