Oracle Database SQL Practice Questions
Prepare for 1z0-071 with more than an answer.
- Exam fee
- $245 USD
- Level
- Associate
- Valid for
- Does not expire
Domains covered on the exam 16
- Relational Database Concepts8%
- Retrieving Data Using SQL SELECT Statement10%
- Restricting and Sorting Data8%
- Using Single-Row Functions12%
- Using Conversion Functions and Conditional Expressions10%
- Reporting Aggregated Data Using Group Functions8%
- Displaying Data from Multiple Tables14%
- Using Subqueries8%
- Using SET Operators6%
- Managing Tables Using DML Statements8%
- Managing Indexes, Synonyms, and Sequences4%
- Using DDL to Manage Tables and Relationships10%
- Managing Views4%
- Controlling User Access4%
- Managing Objects with Data Dictionary Views2%
- Managing Data in Different Time Zones4%
- 1
View the Exhibit and examine the structure of the SALES table.
The query below is written to retrieve all those product IDs from the SALES table that have more than 55000 sold and have been ordered more than 10 items.
Which statement is true regarding this SQL statement?

Show answer details
Correct answer: C
C
- 2
Evaluate the query below.
What would be the outcome of the above query?

Show answer details
Correct answer: C
C
- 3
Examine the structure of the PROMOTIONS table below.
Management requires a report of unique promotion costs in each promotion category.
Which query would satisfy this requirement?

Show answer details
Correct answer: A
A
- 4
You need to display the date 11 -oct-2007 in words as ‘Eleventh of October, Two Thousand Seven’.
Which SQL statement would give the required result?
Show answer details
Correct answer: A
A
- 5
An international logistics company, GlobalShip, needs to consolidate its regional shipment data. The
SHIPMENTStable contains all current shipment records. A staging table,INBOUND_SHIPMENTS, is loaded daily with new records and updates from regional offices. TheSHIPMENT_IDcolumn uniquely identifies each shipment.A database developer must write a single, atomic SQL statement to synchronize the
SHIPMENTStable. The logic must be as follows:- For
SHIPMENT_IDs present in both tables, theSTATUSandEXPECTED_DELIVERYdate in theSHIPMENTStable must be updated to match the staging table's values. - For
SHIPMENT_IDs present in the staging table but not in the mainSHIPMENTStable, a new record must be inserted. - The statement must be efficient and handle large volumes of data without requiring multiple table scans.
Below is a diagram of the tables involved.
Which SQL query correctly implements this synchronization logic?erDiagram SHIPMENTS { INTEGER SHIPMENT_ID PK VARCHAR STATUS DATE EXPECTED_DELIVERY VARCHAR ORIGIN VARCHAR DESTINATION } INBOUND_SHIPMENTS { INTEGER SHIPMENT_ID PK VARCHAR STATUS DATE EXPECTED_DELIVERY VARCHAR ORIGIN VARCHAR DESTINATION } SHIPMENTS ||--|{ INBOUND_SHIPMENTS : "synchronizes with"Show answer details
Correct answer: B
This
MERGEstatement correctly implements the required logic. TheUSINGclause specifies the source table (inbound_shipments), and theONclause defines the join condition (shipment_id). TheWHEN MATCHED THEN UPDATEclause handles existing records, and theWHEN NOT MATCHED THEN INSERTclause handles new records. This is the most efficient and standard way to perform an 'upsert' operation in Oracle SQL. - For
- 6
Examine the structure of the MEMBERS table below.
Examine the SQL statement:
SQL > SELECT city, last_name LNAME FROM MEMBERS ORDER BY 1, LNAME DESC;What would be the result execution? (Choose the best answer.)

Show answer details
Correct answer: D
D
- 7
View the exhibit and examine the structure of the CUSTOMERS table.
Which two tasks would require subqueries or joins to be executed in a single statement? (Choose two.)

Show answer details
Correct answer: A, E
A, E
A, E
- 8
You need to list the employees in DEPARTMENT_ID 20 days in a single row, ordered by HIRE_DATE
Examine the sample output below.
Which query will provide the required output?

Show answer details
Correct answer: B
B
- 9
Which statement is true about SQL query processing in an Oracle database instance? (Choose the best answer.)
Show answer details
Correct answer: B
B
- 10
Which three statements are true about Structured Query Language (SQL)? (Choose three.)
Show answer details
Correct answer: A, D, E
A, D, E
A, D, E
A, D, E




