Coding task · SQL and MySQL course · Module 9: Indexes and normalization

Loan to a reader

Every loan belongs to a specific reader - link them with a foreign key.

Task

Add to the wypozyczenia table a foreign key on the czytelnik_id column that points to the id column in the czytelnicy table. Use ALTER TABLE.