Medical Center database
Non primary-foreign key JOINs
Non-equi JOINs
15. Get to know the apartments table
Non-equi self JOINs
Summary

Instruction

Great! Let's look at two more tables. This time we'll work with apartments and couples.

Exercise

Select all data from the apartments table.

It has the following columns:

  • id – the ID of a given apartment,
  • location – the name of the city where a given apartment is located,
  • price – the price of a given apartment, and
  • rating – the rating of a given apartment.

Stuck? Here's a hint!

Type:

SELECT
  *
FROM apartments

Console

Code editor

Result

TableConsole