Question · SQL and MySQL course · Module 7: Joining tables (JOIN)

What is a foreign key

What is the ksiazki.autor_id column?

Answer options

  • A foreign key - a cross-reference pointing to a row in the autorzy table (autorzy.id)
  • The primary key of the autorzy table
  • The author's name stored as text
  • The number of all books by a given author

You can check the correct answer by solving this task in the CodeWorlds game.