All free practice questions

Free practice questions

Oracle Database SQL (1Z0-071) practice questions

10 free sample questions with explanations — no account needed. When you're ready, take the full-length timed exam.

63

questions on the full exam

120 min

time limit

63%

to pass (63% (Oracle's published passing score))

Exam domains covered

  • Relational Concepts and Retrieving Data18%
  • Single-Row Functions and Conditional Expressions18%
  • Aggregation, Joins, Subqueries and Set Operators27%
  • DML, Transactions and DDL25%
  • User Access, Data Dictionary and Time Zones12%
Question 1Relational Concepts and Retrieving Data

Table: PRODUCTS

+------------+----------+-------+
| PRODUCT_ID | CATEGORY | PRICE |
+------------+----------+-------+
| 1          | BOOK     | 20    |
| 2          | BOOK     | 20    |
| 3          | TOY      | 20    |
+------------+----------+-------+

What does this statement return?

SELECT DISTINCT category, price
FROM products;
Question 2Single-Row Functions and Conditional Expressions

Table: DIVISORS

ID  NUMERATOR  DENOMINATOR
--  ---------  -----------
1   12         3
2   12         12
3   12         0

Which expression returns NULL for ID 2 because the two compared values are equal?

Question 3Aggregation, Joins, Subqueries and Set Operators

Tables:

EMPLOYEES
EMPLOYEE_ID | LAST_NAME | DEPARTMENT_ID
1           | King      | 20
2           | Chen      | 20

DEPARTMENTS
DEPARTMENT_ID | DEPARTMENT_NAME
20            | IT

Which query fails because of Oracle's rule for USING columns?

Question 4DML, Transactions and DDL

Given this table and data:

CREATE TABLE teams (
    team_id    NUMBER(4),
    team_name  VARCHAR2(10)
);

Current rows:

TEAM_ID | TEAM_NAME
1       | ALPHA
2       | BETA
3       | ALPHA

Which statements fail because existing data violates the new rule? Choose two.

Select all that apply.

Question 5User Access, Data Dictionary and Time Zones

A table is created as follows:

CREATE TABLE travel_log (
  depart_at TIMESTAMP WITH LOCAL TIME ZONE
);

A row is inserted in one session and queried in another session with a different time zone. Which statement is true about depart_at when selected?

Question 6Relational Concepts and Retrieving Data

Given the table SALES_REPS:

REP_ID | REP_NAME | REGION | SALES
1      | Imani    | EAST   | 900
2      | Jorge    | WEST   | 1200
3      | Kira     | EAST   | 1200
4      | Liam     | EAST   | 700

What is returned by this query?

SELECT rep_name, sales
FROM sales_reps
WHERE region = 'EAST'
ORDER BY sales DESC, rep_name;
Question 7Single-Row Functions and Conditional Expressions

Table: CONTACTS

CUST_ID  HOME_PHONE  WORK_PHONE  MOBILE_PHONE
-------  ----------  ----------  ------------
1        null        555-1000    555-9999
2        null        null        555-2222
3        null        null        null

What is returned for CUST_ID 1 by this query?

SELECT COALESCE(home_phone, work_phone, mobile_phone, 'NO PHONE') AS best_phone
FROM contacts
WHERE cust_id = 1;
Question 8Aggregation, Joins, Subqueries and Set Operators

Given the table:

EMPLOYEES
EMPLOYEE_ID | LAST_NAME | SALARY | DEPARTMENT_ID
1           | Hart      | 5000   | 10
2           | Ives      | 7000   | 20
3           | Jain      | 7000   | 30
4           | Kerr      | 9000   | 20

What happens when this statement runs?

SELECT last_name
FROM employees
WHERE salary = (
  SELECT salary
  FROM employees
  WHERE department_id = 20
);
Question 9DML, Transactions and DDL

Table sales_rep contains a row where salary is 8000 and commission_pct is NULL. What is the result of this statement for that row?

UPDATE sales_rep
SET salary = salary + commission_pct;
Question 10User Access, Data Dictionary and Time Zones

Which statement correctly grants a system privilege and allows the recipient to pass that same system privilege to other users?

Get a free 1Z0-071 study plan

A 4-week plan weighted by the exam's domains, sent to your inbox, plus two short tips to keep you on track. No account needed.

Ready for the real thing?

Take a full-length, timed 63-question 1Z0-071 practice exam weighted like the official blueprint, with fresh questions each time, results by domain and a full answer review.

Inkwell practice questions are original and independent. Not affiliated with or endorsed by the certification vendor.