Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Medical Center database
Non primary-foreign key JOINs
Non-equi JOINs
Non-equi self JOINs
21. Get to know the product_price table


Good job! Now, we'll introduce the last two tables to show another use case of non-equi JOINs.


Select all data from the product_price table.

It contains information about the special price of a given product between two dates. It contains the following columns:

  • product_id – the ID of a given product,
  • price – the price of a given product in a given period of time,
  • start_date – the date from which a given price went into affect, and
  • end_date – the date when a given price ceases to apply.

Stuck? Here's a hint!


FROM product_price