Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Simple JOINs recap
Various kinds of JOINs
Filtering with LEFT JOIN and RIGHT JOIN
Summary
18. Exercise 1

Instruction

Let's get started!

Exercise

For every auctioned item that was sold for a price greater than its initial price, show the item name together with the name of its buyer and the price they paid.

Stuck? Here's a hint!

Type:

SELECT
  AuctionItem.Name,
  Bidder.Name,
  FinalPrice
FROM AuctionItem
JOIN Bidder
  ON AuctionItem.Id = Bidder.BoughtItemId
WHERE FinalPrice > InitialPrice