I need to write and populate a MySQL database on controlling a bookstore. This involves: 3 tables: | publisher | book | author |
The 'publisher' table should have: id, name, city, state, country.
The 'book' table should have: ISBN, name, year.
The 'author' table should have: cpf, date of birth, 1st name, 2nd name, country.
For the creation of the database and of each table I am not having problems. The problem is that I need to organize these tables so that they correlate, for example, when I want to delete all of a book's records from a single author (which would involve two different tables for a single command).
I read about it and I think it's about "joins", but I do not even know where to start.