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;
A4, 4, 100, 100
B4, 2, 100, 200
C2, 2, 200, 200
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)).