hello im trying to make two databases linked for a book review system im creating
for example i have a table for books and i also have another table for genres.
The books table will store all the different books and will have a foreign key of the genre it belongs to using a genre_id key or something.
When i do a query for genres i want it to display how many books are in that genre eg 2 books in the fantasy genre.
for that i would need a records column? but how do i have that auto incrementing/deleting whennew records are added or deleted?