More Exotic Relationships
As youâve learned, a one-to-many (a.k.a. parent-child) relationship that links a single record in one table to zero, one, or more records in another table is the most common relationship. A single manufacturer could be linked to one bobblehead, several bobbleheads, or no bobbleheads at all.
Along with one-to-many relationships, there are two subtly different types of relationships: one-to-one relationships and many-to-many relationships. Youâll learn about both in the following sections.
One-to-One Relationship
A one-to-one relationship links one record in a table to zero or one record in another table. People sometimes use one-to-one relationships to break down a table with lots of fields into two (or more) smaller tables.
A Products table may include detailed information that describes the product and its price, and additional information that describes how itâs built. This information is important only to the people in the engineering department, so you may choose to split it into a separate table (named something like ProductsEngineering). That way, sales folks donât need to think about it when theyâre making an order. Other times, you might break a table into two pieces because itâs simply too big. (Access doesnât let any table have more than 255 fields.)
You create a one-to-one relationship in the same way you create a one-to-many relationshipâby dragging the fields in the Relationships tab (Figure 5-15). The only difference is that the ...
Get Access 2010: The Missing Manual 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.