Oracle Database SQL Expert (1Z1-047) Free Practice Test
Question 1
View the Exhibit and examine the structure of the ORDER_ITEMS table. You need to display the ORDER_ID of the order that has the highest total value among all the
orders in the ORDER_ITEMS table. Which query would produce the desired output?
ORDER ITEMS

orders in the ORDER_ITEMS table. Which query would produce the desired output?
ORDER ITEMS

Correct Answer: C
Question 2
Which three statements are true? (Choose three.)
Correct Answer: B,C,E
Question 3
Which three statements indicate the end of a transaction? (Choose three.)
Correct Answer: A,B,D
Question 4
Evaluate the following query:
SELECT INTERVAL 300' MONTH,
INTERVAL 54-2' YEAR TO MONTH,
INTERVAL '11:12:10.1234567' HOUR TO SECOND
FROM dual;
What is the correct output of the above query?
SELECT INTERVAL 300' MONTH,
INTERVAL 54-2' YEAR TO MONTH,
INTERVAL '11:12:10.1234567' HOUR TO SECOND
FROM dual;
What is the correct output of the above query?
Correct Answer: A
Question 5
View the Exhibit and examine the structure of ORDER_ITEMS and ORDERS tables.
You need to remove from the ORDER_ITEMS table those rows that have an order status of 0 or
1 in the ORDERS table.
Which DELETE statements are valid? (Choose all that apply.)

You need to remove from the ORDER_ITEMS table those rows that have an order status of 0 or
1 in the ORDERS table.
Which DELETE statements are valid? (Choose all that apply.)

Correct Answer: A,B,C
Question 6
The details of the order ID, order date, order total, and customer ID are obtained from the ORDERS table. If the order value is more than 30000, the details have to be added to the LARGEjDRDERS table. The order ID, order date, and order total should be added to the ORDERJHISTORY table, and order ID and customer ID should be added to the CUSTJHISTORY table. Which multitable INSERT statement would you use?
Correct Answer: C
Question 7
Given below is a list of functions and the tasks performed by using these functions, in random
order.
Function Usage
1) LPAD a) Used to truncate a column, expression, or value to n decimal places 2) TRUNC b)
Used to remove heading or trailing or both characters from the character string 3) DECODE c)
Pads the character value right-justified to a total width of n character positions 4) TRIM d) Used to
return the numeric value for position of a named character from the character string 5) INSTR e) Used to translate an expression after comparing it with each search value
Which option correctly matches the function names with their usage?
order.
Function Usage
1) LPAD a) Used to truncate a column, expression, or value to n decimal places 2) TRUNC b)
Used to remove heading or trailing or both characters from the character string 3) DECODE c)
Pads the character value right-justified to a total width of n character positions 4) TRIM d) Used to
return the numeric value for position of a named character from the character string 5) INSTR e) Used to translate an expression after comparing it with each search value
Which option correctly matches the function names with their usage?
Correct Answer: C
Question 8
View the Exhibit and examine the structure of the EMPLOYEES table. You want to retrieve hierarchical data of the employees using the top-down hierarchy. Which SQL
clause would let you choose the direction to walk through the hierarchy tree?

clause would let you choose the direction to walk through the hierarchy tree?

Correct Answer: C
Question 9
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 10
Which statement is true regarding Flashback Version Query?
Correct Answer: C
Question 11
Which three tasks can be performed using regular expression support in Oracle Database 10g? (Choose three.)
Correct Answer: A,C,E
Question 12
View the Exhibit and examine the description of the EMPLOYEES table.
You want to know the EMPLOYEE_ID and FIRST_NAME of all the records in the EMPLOYEES table wherein the JOBJD column has ST_CLERK or ST_MAN values, the DEPARTMENT_ID column has value 30, and the SALARY column has a value greater than 3,000.
Which SOL statement would get you the desired result?
You want to know the EMPLOYEE_ID and FIRST_NAME of all the records in the EMPLOYEES table wherein the JOBJD column has ST_CLERK or ST_MAN values, the DEPARTMENT_ID column has value 30, and the SALARY column has a value greater than 3,000.
Which SOL statement would get you the desired result?
Correct Answer: D
Question 13
View the Exhibit and examine the structure of ORDERS and CUSTOMERS tables. Which INSERT statement should be used to add a row into the ORDERS table for the customer
whose CUST LAST NAME is Roberts and CREDIT LIMIT is 600?

whose CUST LAST NAME is Roberts and CREDIT LIMIT is 600?

Correct Answer: D