157k views
4 votes
If you want to create a query that shows records from one table that have no corresponding records in another table, use a ____________.

1) JOIN
2) UNION
3) LEFT JOIN
4) RIGHT JOIN

1 Answer

1 vote

Final answer:

To show records from one table that have no corresponding records in another table, use a LEFT JOIN statement.

Step-by-step explanation:

If you want to create a query that shows records from one table that have no corresponding records in another table, you would use a LEFT JOIN statement. The LEFT JOIN retrieves all the records from the left table (the one specified before the JOIN keyword) and the matching records in the right table (specified after the JOIN keyword). Any records that do not have a match in the right table will have NULL values for the right table columns.

User Andy Tinkham
by
6.9k points