Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
2. The author table
Default values
Summary

Instruction

In this part, we'll be working on data from a popular news website. Authors create posts on the website; to do this, they first have to register and supply some information about themselves. This information is stored in the author table. Let's look at that table.

Exercise

Select all columns from the author table. It contains the following columns:

  • id – identifies each author.
  • first_name – the first name of the author.
  • last_name – the last name of the author.
  • photo – a path to a photo of the author; if there is no author photo, it will store the string 'imgs/no-photo.jpg'.
  • create_timestamp – when this author registered on the website.
  • is_active – a boolean value denoting whether the author has an active account and can write posts (true) or an inactive account (false).