↓ Try a sample question (with explanation)

Oracle · Practice questions

1Z0-071 Oracle Database SQL 1Z0-071

Study 259 1Z0-071 Oracle Database SQL 1Z0-071 practice questions with explanations. 26 of them are free to try, no sign-up needed.

Buy to unlock all questions, full reading mode and PDFs.

About this question bank

Questions
259 in total
Free to try
26 questions (no sign-up)
Exam domains
5 domains
Price
JPY 1,500 (≈ US$10; shown in your local currency at checkout) · one-time payment · 3 months
PDF
Japanese–English · Chinese–English · Korean–English · English (for buyers)
Data version
2026-12

About this exam

Oracle's certification exam on SQL for Oracle Database; passing it earns the Oracle Database SQL Certified Associate credential. It covers retrieving data with SELECT, single-row and group functions, joins, subqueries, set operators, DML, DDL, and privileges, testing your ability to write SQL and read its results.

Try a sample question

This is an original sample question written by itmoshi based on the exam objectives.

The SALES_STAFF table in the exhibit has 4 rows, and COMM is NULL in 2 of them. What does the second query in the exhibit return (columns in the order COUNT(*), COUNT(comm), AVG(comm), AVG(NVL(comm, 0)))?

Exhibit
SQL> SELECT emp_id, comm FROM sales_staff;

    EMP_ID       COMM
---------- ----------
       101        100
       102
       103        300
       104

SQL> SELECT COUNT(*), COUNT(comm), AVG(comm), AVG(NVL(comm, 0))
  2  FROM sales_staff;
  1. A4, 4, 100, 100
  2. B4, 2, 100, 200
  3. C2, 2, 200, 200
  4. D4, 2, 200, 100
Show answer and explanation

Answer:D COUNT(*) is 4, COUNT(comm) is 2, AVG(comm) is 200, and AVG(NVL(comm, 0)) is 100.

Why it is correct

COUNT(*) counts rows regardless of NULLs, so it returns 4. COUNT(comm) and AVG(comm) both ignore rows where comm is NULL, so COUNT(comm) is 2 and AVG(comm) is (100 + 300) / 2 = 200. NVL(comm, 0) turns the NULLs into 0 before averaging, so all 4 rows count: (100 + 0 + 300 + 0) / 4 = 100.

The other options

  • ✗ A It treats COUNT(comm) as 4, but COUNT on a column skips NULL rows. Use COUNT(*) when you want NULL rows counted too.
  • ✗ B It swaps the two averages. AVG(comm) ignores NULLs and divides by 2 rows, so it is the larger value; AVG(NVL(comm, 0)) divides by 4 rows, so it is the smaller one.
  • ✗ C COUNT(*) also counts rows containing NULLs, so it is not 2. For example, COUNT(*) would return 2 after filtering with WHERE comm IS NOT NULL.

Key takeaway

Group functions and NULL: COUNT(*) → all rows, NULLs included. COUNT(col), SUM, AVG, MAX, MIN → NULLs ignored. To average with NULL treated as 0, use AVG(NVL(col, 0)).

Try 26 questions like this for free

Most frequent topics

  1. Functions and expressions62 questions
  2. SELECT statements and data retrieval57 questions
  3. Creating and altering tables28 questions
  4. DML operations24 questions
  5. Privileges and roles16 questions
  6. Set operators15 questions

Number of questions per topic among the 259 in this bank (top topics), as classified by itmoshi.

Exam domains

  1. SQL Fundamentals149 questions
  2. Data Definition Language (DDL)52 questions
  3. Data Manipulation Language (DML) and Transaction Control32 questions
  4. Database Objects and Security22 questions
  5. Data Modeling and Design4 questions

Other Oracle exams

← All exams

itmoshi is an unofficial study service and is not affiliated with Oracle or any exam provider.