One-to-Many Relationships
At this point we have structures for four tables in the bookbiz database: authors, titles, editors, and publishers. Some of the properties of each of the entities described by the tables have been specified, and a primary key has been identified for each table.
However, you may have noticed that certain important relationships among the data are not yet represented in the proposed design. For example, there's nothing in these four tables that tells you about the connection between a particular publisher and the books it puts out.
The relationship between publishers and books can be described as one-to-many: Each book has only one publisher, while each publisher can produce many books. One-to-many relationships among ...
Get Practical SQL Handbook, The: Using SQL Variants, Fourth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.