Joins and Relationships in SQL

Assess how well you understand INNER,LEFT,and RIGHT joins.

1. Which type of join returns only rows with matching values in both tables being joined?
2. What type of relationship typically exists between a 'Customers' table (with customer details) and an 'Orders' table (with order records)?
3. Which constraint is used to uniquely identify each record in a table and is often referenced by foreign keys in other tables?
4. If you perform a LEFT JOIN between 'Employees' (left) and 'Departments' (right), which rows are included in the result?
5. What is the result of a CROSS JOIN between two tables with 3 and 4 rows, respectively?
6. Which of the following are valid types of SQL joins? (Select all that apply)
7. Which components are required to establish a referential relationship between two tables? (Select all that apply)
8. Which of these scenarios would require a junction (link) table to model the relationship? (Select all that apply)
9. Which clauses are used to specify join conditions in SQL? (Select all that apply)
10. A FOREIGN KEY constraint in a child table must reference a PRIMARY KEY in the parent table.
11. A FULL OUTER JOIN returns all rows from both tables, with NULL values in columns where there is no match.
12. In SQL, you can only join two tables in a single query.
13. What is the abbreviation for the join that returns all rows from the right table and matching rows from the left table (e.g., 'right ... join')?
14. What term describes a relationship where a record in Table A can relate to at most one record in Table B, and vice versa?
15. In the syntax `SELECT * FROM Orders JOIN Customers ... CustomerID`, what keyword replaces '...' to specify the join condition?
Answered 0 of 0 — 0 correct