15.6k views
2 votes
Using a left outer join, write and execute a query that will display a unique list of the makes of automobiles that have never been rented. You should have 2 rows: Toyota and Volvo.

1 Answer

0 votes

Final answer:

To display a unique list of automobile makes that have never been rented using a left outer join, you can write and execute a query.

Step-by-step explanation:

In order to display a unique list of automobile makes that have never been rented using a left outer join, you would need two tables: one for the automobiles and one for the rentals. To display a unique list of automobile makes that have never been rented using a left outer join, you can write and execute a query. Let's assume the automobile table has a column 'make' and the rentals table has a column 'make' as well. You can write and execute the following query:

SELECT DISTINCT automobile.make FROM automobile LEFT OUTER JOIN rentals ON automobile.make = rentals.make WHERE rentals.make IS NULL;

This query will return a list of automobile makes that are present in the automobile table but not in the rentals table.

User Tonka
by
9.0k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.