Limited-Time Offer: Enjoy 50% Savings! - Ends In 0d 00h 00m 00s Coupon code: 50OFF
Welcome to QA4Exam

Free practice questions with explanations

Oracle 1Z0-071 Dumps 2026 with Free Practice Questions and Answers

13 original practice questions for the Oracle Database SQL exam, each with an answer and explanation.

Exam topics: Managing Data In Different Time Zones, Controlling User Access, Displaying Data From Multiple Tables, Managing Indexes Synonyms And Sequences and 7 more.

Formats: single answer, multiple answers, drag and drop, dropdown and order list. A new question is added every 15 days.

1Z0-071 Practice Set Details

Vendor
Oracle
Exam Code
1Z0-071
Questions On This Page
13
Exam Topics Covered
11 of 16
Question Types
5
Newest Question
New Question
Every 15 days
Full Question Set
326
Certification
Oracle Database
13 questions

Oracle 1Z0-071 Exam Questions and Answers by Topic

Restricting and Sorting Data

1 practice question on this topicWhat this topic covers

Question 1

Added

Multiple Answers

A SQL*Plus script prompts an analyst for a minimum salary and a department number, then displays employees meeting both criteria ordered from highest salary to lowest. The script must show the substituted statement before execution so reviewers can verify the entered values. The department number is numeric, while the salary may contain a decimal point. Choose two script changes that meet these requirements without changing the query's result logic.

Correct answer: B, E

ACCEPT with NUMBER is appropriate for both numeric inputs and lets SQL*Plus perform numeric substitution without introducing quoted character values. VERIFY displays the old and new lines when substitution variables are replaced, which is the requested review behavior. CHAR for the department value would make numeric substitution less direct. ECHO displays script commands, not the before-and-after substitution lines. FEEDBACK reports row counts or related execution feedback rather than the substituted statement.

Reporting Aggregated Data Using Group Functions

1 practice question on this topicWhat this topic covers

Question 2

Added

Single Answer

A billing team needs the number of invoices and the average invoice amount for each customer. The report should include only customers whose average invoice amount exceeds 500, and customers with no invoices must not appear. Invoice amounts are non-null, but the report must not filter individual invoices before their customer totals are calculated. Which query structure is appropriate?

Correct answer: B

HAVING filters groups after GROUP BY has computed their aggregate values, so it applies the average threshold to each customer's invoices. WHERE cannot directly use a group function such as AVG, making A invalid. Filtering individual amounts with WHERE changes the rows that contribute to the average and does not enforce the stated average condition. D tests a count rather than an average and omits the grouping needed for per-customer results.

Displaying Data from Multiple Tables

1 practice question on this topicWhat this topic covers

Question 3

Added

Single Answer

A support database stores employees in EMPLOYEES(employee_id, manager_id, last_name) and departments in DEPARTMENTS(department_id, department_name). A report must show every employee, including employees who have no assigned department, along with the department name when one exists. Some employees also have no manager, but manager information is not required. The reporting team wants a query that is portable across current Oracle SQL usage and avoids filtering away unmatched employees. Which join design meets the requirement?

Correct answer: C

A left outer join preserves every row from EMPLOYEES and supplies null department columns when no matching department exists. An inner join loses unassigned employees, so the nested design in A cannot satisfy the report requirement. A right outer join preserves all departments rather than all employees. A Cartesian join multiplies rows, and its proposed filter does not reliably retain employees lacking a department.

Using Subqueries to Solve Queries

1 practice question on this topicWhat this topic covers

Question 4

Added

Single Answer

A maintenance application must delete projects that have no assigned tasks. PROJECTS(project_id, status) and TASKS(task_id, project_id) are related by project_id. Projects with a null status are still eligible for deletion, and the application must preserve projects that have at least one matching task. Which statement is the safest choice?

Correct answer: C

The correlated NOT EXISTS predicate deletes a project only when the subquery finds no task with that project's identifier. It is unaffected by nulls in the status column and avoids the null-sensitive behavior of NOT IN. A can return no rows for deletion if the subquery returns a null project_id. B selects a task identifier and is not a valid scalar comparison when multiple matching tasks exist, while D targets a different and generally unrelated condition.

Using SET Operators

1 practice question on this topicWhat this topic covers

Question 5

Added

Drag And Drop

A data warehouse team combines identifier lists from two SELECT statements. Match each required result behavior to the set operator that produces it. Each operator is used with compatible SELECT lists.

Drag each item onto its matching target. On a phone: tap an item, then tap a target.

Return rows appearing in either query and retain duplicates
Return rows appearing in either query and remove duplicates
Return rows present in both queries
Return rows from the first query that are absent from the second
UNION ALL
UNION
INTERSECT
MINUS
Correct answer:
  • Return rows appearing in either query and remove duplicates → UNION
  • Return rows appearing in either query and retain duplicates → UNION ALL
  • Return rows present in both queries → INTERSECT
  • Return rows from the first query that are absent from the second → MINUS

UNION combines the result sets and removes duplicate rows, while UNION ALL preserves duplicates. INTERSECT returns rows common to both queries. MINUS returns rows from the first query that do not occur in the second. These operators require corresponding SELECT expressions to have compatible numbers and data types; choosing one based only on the desired row order would not change the set behavior.

Managing Indexes Synonyms and Sequences

1 practice question on this topicWhat this topic covers

Question 6

Added

Single Answer

An order-entry service needs a database-generated identifier for each new order. Several sessions may request identifiers concurrently, gaps are acceptable, and the application must not query the table for MAX(order_id) because that approach causes contention. The development team also wants to reference the generator without modifying the underlying sequence object's name. Which solution best meets these requirements?

Correct answer: B

A sequence is designed to provide distinct values concurrently without requiring a table lookup, and gaps are expected behavior. A private synonym gives the application schema an alternate name for that sequence without renaming the underlying object. A unique index enforces uniqueness but does not generate values. A view does not provide a next-value mechanism, and a public synonym for the table neither generates identifiers nor prevents concurrent collisions.

Use DDL to Manage Tables and Their Relationships

1 practice question on this topicWhat this topic covers

Question 7

Added

Multiple Answers

A compliance team is redesigning a customer table that must enforce a unique customer number, require a non-null customer name, and reject any status outside A or I. Existing data has been checked, and the table is being created new. The team wants the rules enforced by Oracle for every session, not only by the application. Choose two constraint definitions that correctly enforce the stated requirements.

Correct answer: A, C

NOT NULL prevents a customer name from being omitted or set to null, and a CHECK constraint restricting status to A or I rejects other values. A UNIQUE constraint on customer_number does not by itself require the column to be non-null, so it does not fully express the stated requirement as written. A CHECK comparison with NULL does not reliably enforce non-nullness. A default supplies a value when one is omitted but does not prevent other status values from being inserted.

Managing Views

1 practice question on this topicWhat this topic covers

Question 8

Added

Single Answer

A reporting view joins EMPLOYEES to DEPARTMENTS and includes employee names, department names, and salary totals. Analysts need to query the view, but updates through it are not required. The security team wants to ensure that the view remains valid only while its referenced base tables exist, and that users granted access to the view cannot use it to bypass the owner's object privileges. Which view definition clause should the owner use?

Correct answer: D

WITH READ ONLY prevents DML through the view, which matches the reporting-only requirement. The view owner must still hold the required privileges on the underlying objects, and querying the view does not grant users broader access to those base objects. WITH CHECK OPTION constrains DML rows rather than making the view read-only. WITH GRANT OPTION applies to privilege grants, not view DML behavior. CASCADED CHECK OPTION is also a DML restriction and does not meet the specified purpose.

Controlling User Access

1 practice question on this topicWhat this topic covers

Question 9

Added

Single Answer

A payroll analyst needs to run SELECT statements against the PAYROLL.EMPLOYEES table, but must not read other tables owned by PAYROLL and must not create tables in the database. The object owner can issue the grant, and no role-based access is needed. Which grant provides only the required access?

Correct answer: A

GRANT SELECT ON payroll.employees grants the needed object privilege on one specific table and does not authorize access to other PAYROLL objects. SELECT ANY TABLE is a broad system privilege that exceeds the least-privilege requirement. CREATE TABLE permits schema object creation but does not grant the requested table access. ALL grants more object privileges than SELECT, including privileges unnecessary for this analyst.

Managing Objects with Data Dictionary Views

1 practice question on this topicWhat this topic covers

Question 10

Added

Dropdown

A DBA connected as the owner of the SALES schema must inspect the names and statuses of indexes on the ORDERS table using an owner-level dictionary view. Complete the query by selecting the correct view and filter column.

Choose the correct value for each blank.

SELECT index_name, status FROM WHERE = 'ORDERS';
Correct answer:

SELECT index_name, status FROM USER_INDEXES WHERE table_name = 'ORDERS';

USER_INDEXES lists indexes owned by the currently connected user, and TABLE_NAME identifies the indexed table. ALL_INDEXES includes objects accessible to the user, while DBA_INDEXES covers database-wide index metadata and is normally subject to dictionary privileges. Filtering on OWNER would compare a schema name with the table name, and filtering on INDEX_NAME would select by index rather than by its associated table.

Managing Data in Different Time Zones

3 practice questions on this topicWhat this topic covers

Question 11

Added

Single Answer

An operations team records an event using a TIMESTAMP WITH TIME ZONE column. A session connected from a regional office must display the current time in its session time zone and retain the time-zone offset in the value. A separate audit display uses LOCALTIMESTAMP and therefore does not include a time-zone component. Which expression supplies the required value for the event column?

Correct answer: A

CURRENT_TIMESTAMP returns a TIMESTAMP WITH TIME ZONE value in the session time zone, matching both the column requirement and the regional display behavior. CURRENT_DATE is a DATE value and has neither fractional seconds nor a retained time-zone component. LOCALTIMESTAMP returns a timestamp without time zone. SYSDATE returns a DATE based on the database server's operating-system clock, not the session time zone.

Question 12

Added

Order List

A reservation system must calculate a future expiration instant from a timestamp with time zone by adding a duration of 36 hours. The implementation must preserve interval semantics rather than convert the duration into a number of days manually. Arrange the SQL design steps in the order they should be performed.

Drag the steps into the correct order, or use the arrows.

  1. Add the interval value to the starting timestamp
  2. Return the resulting timestamp with time zone
  3. Choose an INTERVAL DAY TO SECOND value representing 36 hours
  4. Use a TIMESTAMP WITH TIME ZONE value as the starting instant
Correct answer:
  1. Choose an INTERVAL DAY TO SECOND value representing 36 hours
  2. Use a TIMESTAMP WITH TIME ZONE value as the starting instant
  3. Add the interval value to the starting timestamp
  4. Return the resulting timestamp with time zone

The duration should first be represented as an INTERVAL DAY TO SECOND, which can express hours and minutes without relying on a fractional-day conversion. The calculation then starts with a TIMESTAMP WITH TIME ZONE, adds the interval using Oracle's datetime arithmetic, and returns a time-zone-aware result. Adding a plain number to a timestamp is not the interval-based operation requested, and converting the result to DATE would discard the time-zone information.

Question 13

Added

Single Answer

A scheduling table stores a duration as INTERVAL DAY TO SECOND. A report needs rows whose duration is greater than 90 minutes, and it must compare interval values directly rather than convert them to text or numeric seconds. Which predicate uses a valid interval expression?

Correct answer: A

INTERVAL '90' MINUTE is a valid interval literal representing 90 minutes, so it can be compared directly with an INTERVAL DAY TO SECOND value. The literal in B declares a day-to-second interval but supplies a value in a form that does not express 90 minutes as intended. TO_DATE returns a date, not an interval. Comparing the interval directly with the numeric value 90 does not provide the required interval comparison.

More Oracle Practice Questions

Get the Full Oracle 1Z0-071 Dumps as PDF and Practice Test

13 questions are free on this page and the full set has 326. It comes as a PDF and an online practice test, with 90 days of free updates.