Save up to $499! Grab all Python courses for $49 or all online courses we’ve ever launched for only $169. Only Feb 11-16. Happy Valentine's!
4. Boolean data type - revision


Excellent! Let's move on to the smallest data type - boolean. It can only store two values: TRUE or FALSE. Let's do a quick exercise.


In the European Grand Star Hotel, there are some rooms with a sauna installed inside the bathroom. Let's make a small table room_sauna with the columns:

  • room_id (integer) and
  • sauna_available (boolean).

Stuck? Here's a hint!


CREATE TABLE room_sauna (
   room_id int,
   sauna_available boolean