Oracle Database SQL Expert (1Z0-047) Free Practice Test
Question 1
Evaluate the following SQL statements in the given order:
DROP TABLE dept;
CREATE TABLE dept (deptno NUMBER(3) PRIMARY KEY, deptname VARCHAR2(10));
DROP TABLE dept;
FLASHBACK TABLE dept TO BEFORE DROP;
Which statement is true regarding the above FLASHBACK operation?
DROP TABLE dept;
CREATE TABLE dept (deptno NUMBER(3) PRIMARY KEY, deptname VARCHAR2(10));
DROP TABLE dept;
FLASHBACK TABLE dept TO BEFORE DROP;
Which statement is true regarding the above FLASHBACK operation?
Correct Answer: D
Question 2
View the Exhibit and examine the description of the CUSTOMERS table. You want to add a constraint on the CUST_FIRST_NAME column of the CUSTOMERS table so
that the value inserted in the column does not have numbers. Which SOL statement would you use to accomplish the task?

that the value inserted in the column does not have numbers. Which SOL statement would you use to accomplish the task?

Correct Answer: B
Question 3
EMPDET is an external table containing the columns EMPNO and ENAME. Which command would work in relation to the EMPDET table?
Correct Answer: B
Question 4
View the Exhibit and examine DEPARTMENTS and the LOCATIONS tables.
Evaluate the following SOL statement:
SELECT location_id, city FROM locations I WHERE NOT EXISTS (SELECT location_id FROM departments WHERE location_id <> I. location_id);
This statement was written to display LOCATION_ID and CITY where there are no departments located. Which statement is true regarding the execution and output of the command?

Evaluate the following SOL statement:
SELECT location_id, city FROM locations I WHERE NOT EXISTS (SELECT location_id FROM departments WHERE location_id <> I. location_id);
This statement was written to display LOCATION_ID and CITY where there are no departments located. Which statement is true regarding the execution and output of the command?

Correct Answer: A
Question 5
Which two statements are true regarding multiple-row subqueries? (Choose two.)
Correct Answer: B,D
Question 6
View the Exhibit and examine the details of the
PRODUCT_INFORMATION table.
Evaluate the following SQL statement:
SELECT TO_CHAR(list_price ,'$9,999")
FROM product_information;

Which two statements would be true regarding the output for this SQL statement? (Choose two.)
PRODUCT_INFORMATION table.
Evaluate the following SQL statement:
SELECT TO_CHAR(list_price ,'$9,999")
FROM product_information;

Which two statements would be true regarding the output for this SQL statement? (Choose two.)
Correct Answer: A,C
Question 7
Which two statements are true? (Choose two.)
Correct Answer: D,E
Question 8
View the Exhibit and examine the structure of the ORDERS and ORDER_ITEMS tables.
Evaluate the following SQL statement:
SELECT oi.order_id, product_id, order_date FROM order_items oi JOIN orders o
USING(order_id);
Which statement is true regarding the execution of this SQL statement?

Evaluate the following SQL statement:
SELECT oi.order_id, product_id, order_date FROM order_items oi JOIN orders o
USING(order_id);
Which statement is true regarding the execution of this SQL statement?

Correct Answer: A