Oracle Database: SQL Fundamentals I - 1Z1-051 Exam Practice Test

Question 1
View the Exhibit and examine the description for the PRODUCTS and SALES table.
PROD_ID is a primary key in the PRODUCTS table and foreign key in the SALES table. You want to remove all the rows from the PRODUCTS table for which no sale was done for the last three years. Which is the valid DELETE statement?

Correct Answer: B
Question 2
See the exhibit and examine the structure of the CUSTOMERS and GRADES tables:

You need to display names and grades of customers who have the highest credit limit.
Which two SQL statements would accomplish the task? (Choose two.)

Correct Answer: B,D
Question 3
Which three statements are true regarding sub queries? (Choose three.)

Correct Answer: B,E,F
Question 4
Which four are attributes of single row functions? (Choose four.)

Correct Answer: B,D,E,F
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).
Question 5
Which two statements are true regarding constraints? (Choose two.)

Correct Answer: A,D
Question 6
You need to create a table named ORDERS that contain four columns:
1.an ORDER_ID column of number data type
2.a CUSTOMER_ID column of number data type
3.an ORDER_STATUS column that contains a character data type
4.a DATE_ORDERED column to contain the date the order was placed.
When a row is inserted into the table, if no value is provided when the order was placed, today's date should be used instead.
Which statement accomplishes this?

Correct Answer: C
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).
Question 7
Which two statements are true regarding tables? (Choose two.)

Correct Answer: B,E
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).
Question 8
Which three statements are true regarding views? (Choose three.)

Correct Answer: B,E,F
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).
Question 9
Which statement is true regarding the UNION operator?

Correct Answer: C
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).
Question 10
Examine the structure proposed for the TRANSACTIONS table:

Which statements are true regarding the creation and storage of data in the above table structure? (Choose all that apply.)

Correct Answer: B,E
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).
Question 11
Which two statements are true regarding the USING clause in table joins?(Choose two.)

Correct Answer: A,D
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).
Question 12
Which is the valid CREATE [TABLE statement?

Correct Answer: D
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).
Question 13
View the Exhibit and examine the structure of the PROMOTIONS table.

Evaluate the following SQL statement:
SQL>SELECT promo_name,CASE
WHEN promo_cost >=(SELECT AVG(promo_cost)
FROM promotions
WHERE promo_category='TV')
then 'HIGH'
else 'LOW'
END COST_REMARK
FROM promotions;
Which statement is true regarding the outcome of the above query?

Correct Answer: D