Back-To-School Deals - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Challenge with artists

Instruction

Here comes our new table!

Exercise

Let's take a look at museum loans. Show the name of each museum that loaned a piece (name that column as loaner), and the name of the museum that received the piece (name that column as borrower). Don't show duplicates.

Stuck? Here's a hint!

You need to join the table museum_loans twice with the table museum, once using the from_museum_id column, and once using the to_museum_id column. Give each copy of the museum table a different alias.

Use DISTINCT to select distinct pairs.