Medical Center database
Non primary-foreign key JOINs
Non-equi JOINs
13. Items within price range
Non-equi self JOINs
Summary

Instruction

Okay, let's start with something simple.

Exercise

Show the name of every buyer together with the name of every item that they can afford.

Stuck? Here's a hint!

Type:

SELECT
  buyer.name,
  item.name
FROM item
JOIN buyer
  ON item.price <= buyer.funds

Console

Code editor

Result

TableConsole