Skip to content

Oracle Database SQL Practice Questions

Prepare for 1z0-071 with more than an answer.

505 questions in the full set20 sample questionsUpdated Jan 23, 2026
Exam fee
$245 USD
Level
Associate
Valid for
Does not expire
Domains covered on the exam 16
  1. Relational Database Concepts8%
  2. Retrieving Data Using SQL SELECT Statement10%
  3. Restricting and Sorting Data8%
  4. Using Single-Row Functions12%
  5. Using Conversion Functions and Conditional Expressions10%
  6. Reporting Aggregated Data Using Group Functions8%
  7. Displaying Data from Multiple Tables14%
  8. Using Subqueries8%
  9. Using SET Operators6%
  10. Managing Tables Using DML Statements8%
  11. Managing Indexes, Synonyms, and Sequences4%
  12. Using DDL to Manage Tables and Relationships10%
  13. Managing Views4%
  14. Controlling User Access4%
  15. Managing Objects with Data Dictionary Views2%
  16. Managing Data in Different Time Zones4%
  1. 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?

    Question exhibit
    Show answer details

    Correct answer: C

    C

  2. 2

    Evaluate the query below.

    What would be the outcome of the above query?

    Question exhibit
    Show answer details

    Correct answer: C

    C

  3. 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?

    Question exhibit
    Show answer details

    Correct answer: A

    A

  4. 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. 5

    An international logistics company, GlobalShip, needs to consolidate its regional shipment data. The SHIPMENTS table contains all current shipment records. A staging table, INBOUND_SHIPMENTS, is loaded daily with new records and updates from regional offices. The SHIPMENT_ID column uniquely identifies each shipment.

    A database developer must write a single, atomic SQL statement to synchronize the SHIPMENTS table. The logic must be as follows:

    1. For SHIPMENT_IDs present in both tables, the STATUS and EXPECTED_DELIVERY date in the SHIPMENTS table must be updated to match the staging table's values.
    2. For SHIPMENT_IDs present in the staging table but not in the main SHIPMENTS table, a new record must be inserted.
    3. 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 MERGE statement correctly implements the required logic. The USING clause specifies the source table (inbound_shipments), and the ON clause defines the join condition (shipment_id). The WHEN MATCHED THEN UPDATE clause handles existing records, and the WHEN NOT MATCHED THEN INSERT clause handles new records. This is the most efficient and standard way to perform an 'upsert' operation in Oracle SQL.

  6. 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.)

    Question exhibit
    Show answer details

    Correct answer: D

    D

  7. 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.)

    Question exhibit
    Show answer details

    Correct answer: A, E

    A, E

    A, E

  8. 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?

    Question exhibit
    • Option exhibit
    • Option exhibit
    • Option exhibit
    • Option exhibit
    Show answer details

    Correct answer: B

    B

  9. 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. 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

Create an account to continue.