Inner Join Basics 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 ProProfs AI
P
ProProfs AI
Community Contributor
Quizzes Created: 81 | Total Attempts: 817
| Questions: 15 | Updated: May 1, 2026
Please wait...
Question 1 / 16
🏆 Rank #--
0 %
0/100
Score 0/100

1. What does an INNER JOIN return?

Explanation

An INNER JOIN combines rows from two or more tables based on a related column between them. It returns only the rows where there is a match in both tables, effectively filtering out any records that do not meet this criterion. This ensures that only relevant data from both tables is included in the result.

Submit
Please wait...
About This Quiz
Inner Join Basics Quiz - Quiz

This Inner Join Basics Quiz tests your understanding of how to combine data from multiple tables using SQL joins and subqueries. You'll explore fundamental concepts like matching rows, filtering results, and writing efficient queries. Perfect for Grade 11 students mastering relational databases and SQL fundamentals.

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. Which keyword is used to combine rows from two tables based on a common column?

Explanation

JOIN is the SQL keyword used to combine rows from two or more tables based on a related column between them. It allows for the retrieval of data that is interconnected, enabling more complex queries and analyses by linking tables through their common attributes.

Submit

3. In the query SELECT * FROM students INNER JOIN courses ON students.id = courses.student_id, what does the ON clause do?

Explanation

The ON clause in the SQL query specifies the condition that links the two tables, students and courses, by matching the student IDs. This ensures that only related records from both tables are combined in the result set, establishing a clear relationship between the data being queried.

Submit

4. True or False: An INNER JOIN will include rows from the left table that have no match in the right table.

Explanation

An INNER JOIN only returns rows where there is a match between the two tables based on the specified join condition. If a row in the left table does not have a corresponding match in the right table, it will be excluded from the result set, making the statement false.

Submit

5. What is a subquery?

Explanation

A subquery is a query embedded within another SQL query, allowing for more complex data retrieval. It can be used to filter results, calculate values, or provide data for the outer query, making it a powerful tool for handling intricate database operations efficiently.

Submit

6. In a subquery, which query executes first?

Explanation

In SQL, when a subquery is used, the inner query (subquery) executes first to provide the necessary data for the outer query. This sequential execution ensures that the outer query can utilize the results from the inner query to perform its operations effectively.

Submit

7. SELECT name FROM employees WHERE dept_id IN (SELECT id FROM departments WHERE budget > 50000). What type of subquery is this?

Explanation

This query contains a subquery that retrieves department IDs based on a budget condition, which is executed independently of the outer query. Since the inner subquery does not reference any columns from the outer query, it is classified as a non-correlated (independent) subquery, allowing it to run separately and return multiple results.

Submit

8. When joining two tables, the column used to match rows is called the ____.

Explanation

A foreign key is a column in one table that uniquely identifies a row in another table, establishing a relationship between the two. It allows for the linking of data across tables, ensuring referential integrity by enforcing that the value in the foreign key column corresponds to a valid entry in the referenced table.

Submit

9. True or False: A subquery can return multiple rows and columns.

Explanation

A subquery can indeed return multiple rows and columns, functioning like a separate query within a larger SQL statement. This allows for complex data retrieval and manipulation, enabling users to extract detailed information from one or more tables based on specific criteria. Subqueries enhance the flexibility and power of SQL queries.

Submit

10. Which statement best describes the relationship in INNER JOIN?

Explanation

INNER JOIN is a type of SQL join that retrieves records from two tables where there is a match based on a specified condition. It excludes any rows that do not have corresponding matches in both tables, ensuring that only the records that satisfy the join condition are included in the result set.

Submit

11. In a subquery within a WHERE clause, what does the subquery typically return?

Explanation

In a WHERE clause, a subquery is used to refine the main query's results by returning a single value or a list of values. This allows the main query to filter rows based on specific criteria derived from the subquery's output, ensuring only relevant data is selected.

Submit

12. A correlated subquery references columns from the ____.

Explanation

A correlated subquery is a type of subquery that depends on the outer query for its values. It references columns from the outer query to perform its operations, allowing it to return results that are specific to each row processed by the outer query. This relationship creates a dynamic link between the two queries.

Submit

13. True or False: INNER JOIN and INNER SUBQUERY produce identical results in all cases.

Submit

14. Which operator is commonly used to compare a value with the results of a subquery that returns multiple rows?

Submit

15. When writing an INNER JOIN, the syntax typically uses the keyword ____.

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (15)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
What does an INNER JOIN return?
Which keyword is used to combine rows from two tables based on a...
In the query SELECT * FROM students INNER JOIN courses ON students.id...
True or False: An INNER JOIN will include rows from the left table...
What is a subquery?
In a subquery, which query executes first?
SELECT name FROM employees WHERE dept_id IN (SELECT id FROM...
When joining two tables, the column used to match rows is called the...
True or False: A subquery can return multiple rows and columns.
Which statement best describes the relationship in INNER JOIN?
In a subquery within a WHERE clause, what does the subquery typically...
A correlated subquery references columns from the ____.
True or False: INNER JOIN and INNER SUBQUERY produce identical results...
Which operator is commonly used to compare a value with the results of...
When writing an INNER JOIN, the syntax typically uses the keyword...
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!