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 ProductPrice table
Summary

Instruction

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

Exercise

Select all data from the ProductPrice table.

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

  • ProductId – the ID of a given product,
  • Price – the price of a given product in a given period of time,
  • StartDate – the date from which a given price went into affect, and
  • EndDate – the date when a given price ceases to apply.

Stuck? Here's a hint!

Type:

SELECT
  *
FROM ProductPrice