Oracle SQL Associate Table Joins and Set Operators Quiz

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Thames
T
Thames
Community Contributor
Quizzes Created: 11982 | Total Attempts: 187,298
| Attempts: 11 | Questions: 20 | Updated: Aug 15, 2026
Please wait...
Question 1 / 21
🏆 Rank #-- ▾
0 %
0/100
Score 0/100

1. Which clause is used to specify join conditions in Oracle SQL?

Explanation

Oracle SQL provides both `ON` and `USING` to specify join conditions. Use `ON` for an explicit comparison between columns, including columns with different names. Use `USING` when the joined tables share a column name and that common column defines the join. These clauses are part of the join syntax.

Submit
Please wait...
About This Quiz
Oracle SQL Associate Table Joins and Set Operators Quiz - Quiz

This quiz evaluates your mastery of table joins and set operators in Oracle SQL. You'll test your understanding of INNER JOIN, OUTER JOIN, CROSS JOIN, and set operations like UNION, INTERSECT, and MINUS. Essential skills for querying multiple tables and combining result sets efficiently.

2.

What first name or nickname would you like us to use?

You may optionally provide this to label your report, leaderboard, or certificate.

2. To join three or more tables, you can chain multiple JOIN clauses in a single SELECT statement.

Explanation

A SELECT statement can include multiple JOIN clauses, with each JOIN connecting another table to the query. This lets you retrieve related data from three or more tables in a single query.

Submit

3. Which set operator preserves duplicates without removing them?

Explanation

UNION ALL combines the results of two queries while retaining duplicate rows. In contrast, UNION removes duplicates, and INTERSECT and MINUS return only rows that meet their respective matching or exclusion conditions.

Submit

4. The USING clause in a join specifies ____ that have the same name in both tables.

Explanation

The USING clause names the columns shared by both tables that should be used to match rows. It avoids repeating the join condition with an ON clause.

Submit

5. In a LEFT JOIN with NULL values in the join condition, unmatched rows from the left table still appear.

Explanation

A LEFT JOIN returns every row from the left table, even when the join condition finds no match. If a join value is NULL, it typically does not match another value, so the left-side row still appears with NULLs in the columns from the right table.

Submit

6. Set operators combine result sets from multiple queries. Which operator returns rows that appear in all queries?

Explanation

INTERSECT returns only the rows common to every query’s result set. Rows that appear in just one or some of the queries are excluded.

Submit

7. Which of the following is a valid join syntax in Oracle SQL?

Explanation

Oracle SQL supports ANSI join syntax with `INNER JOIN` and an `ON` condition, as well as the older comma-separated table list with matching conditions in `WHERE`. It also supports `JOIN ... USING` when both tables share a column name, such as `id`. Since each listed form is valid for joining related rows, “All of the above” applies.

Submit

8. A RIGHT OUTER JOIN returns all rows from the ____ table plus matching rows from the left table.

Explanation

A RIGHT OUTER JOIN preserves every row from the table named on the right side of the join. It adds matching rows from the left table; when no match exists, columns from the left table contain NULL values.

Submit

9. When using set operators, both queries must have the same number of columns.

Explanation

Set operators such as UNION, INTERSECT, and EXCEPT combine results from multiple queries. Each query must return the same number of columns, and corresponding columns must have compatible data types.

Submit

10. What is the key difference between UNION and UNION ALL?

Explanation

Both operators combine rows from compatible SELECT statements. UNION eliminates duplicate rows from the combined results, while UNION ALL preserves every row, including duplicates, and may run faster because it skips duplicate checking.

Submit

11. Which JOIN type returns only rows where both tables have matching values?

Explanation

INNER JOIN returns only the rows with matching values in both tables. Rows without a match in either table are excluded from the result.

Submit

12. A SELF JOIN is used to join a table to ____.

Explanation

A self join matches rows from a table with other rows in the same table. It is useful for comparing records or representing relationships within one dataset, such as linking employees to their managers.

Submit

13. In a NATURAL JOIN, Oracle automatically joins tables on columns with the same ____.

Explanation

A NATURAL JOIN automatically identifies columns that have the same name in both tables and uses them as join keys. It returns rows where the values in those matching columns are equal, without requiring you to specify the join condition explicitly.

Submit

14. UNION ALL removes duplicate rows from the result set.

Explanation

`UNION ALL` keeps duplicate rows when combining query results. `UNION` removes duplicates. Therefore, the statement that `UNION ALL` removes duplicates is false.

Submit

15. A FULL OUTER JOIN returns all rows from both tables with NULLs where no match exists.

Explanation

A FULL OUTER JOIN includes every row from both tables. Where a row has no matching row in the other table, the columns from that table contain NULL values.

Submit

16. What does the MINUS operator return?

Explanation

The MINUS operator compares the results of two queries and returns rows that appear in the first query but not in the second. Both queries must have compatible columns and data types for the comparison.

Submit

17. Which JOIN produces a Cartesian product of two tables?

Explanation

A CROSS JOIN combines every row from the first table with every row from the second. For example, if the tables contain 3 and 4 rows, respectively, the result contains 12 rows—a Cartesian product.

Submit

18. What is the result of INTERSECT between two result sets?

Explanation

`INTERSECT` returns only the rows that are present in both result sets. Rows found in just one set are excluded, and duplicate rows are typically removed.

Submit

19. Which set operator removes duplicate rows and returns distinct rows from both queries?

Explanation

UNION combines the result sets of two queries and removes duplicate rows, returning only distinct rows. The queries must return the same number of columns with compatible data types. Unlike UNION, UNION ALL keeps duplicates; INTERSECT and MINUS return rows based on different comparisons between the result sets.

Submit

20. What does a LEFT OUTER JOIN return?

Explanation

A LEFT OUTER JOIN includes every row from the left table. Where a matching row exists in the right table, its values are included; otherwise, the right table’s columns are returned as NULL.

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (20)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
Which clause is used to specify join conditions in Oracle SQL?
To join three or more tables, you can chain multiple JOIN clauses in a...
Which set operator preserves duplicates without removing them?
The USING clause in a join specifies ____ that have the same name in...
In a LEFT JOIN with NULL values in the join condition, unmatched rows...
Set operators combine result sets from multiple queries. Which...
Which of the following is a valid join syntax in Oracle SQL?
A RIGHT OUTER JOIN returns all rows from the ____ table plus matching...
When using set operators, both queries must have the same number of...
What is the key difference between UNION and UNION ALL?
Which JOIN type returns only rows where both tables have matching...
A SELF JOIN is used to join a table to ____.
In a NATURAL JOIN, Oracle automatically joins tables on columns with...
UNION ALL removes duplicate rows from the result set.
A FULL OUTER JOIN returns all rows from both tables with NULLs where...
What does the MINUS operator return?
Which JOIN produces a Cartesian product of two tables?
What is the result of INTERSECT between two result sets?
Which set operator removes duplicate rows and returns distinct rows...
What does a LEFT OUTER JOIN return?
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!