G
Guest
What are the advantages of the three types of relationships in a database?
One to One, One to Many, and Many to Many?
One to One, One to Many, and Many to Many?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
SirPoonga said:"One To Many -- For every record in TableA there is one or more
records in
TableB
This is the most common kind of relationship (in fact, it is essential
to a
many to many relationship) in database design. In an order management
system, each Order might have many Details. Thus, these two tables
would
need to be related as one to many.
"
This is a really good point. If you need to save space and you know a
field contains a large percent of nulls splitting that into a 1 to 1
table relationship will save space. In access say it was a text field
with the default 50 character limit. For 100,000 records access has
to put aside space for all the records and fields. So it is allocating
space for that field when for the most part it will store null anyway.
Access has to allocate enough space for 50,000,000 characters then.
Say only 100 records actually contain data, now splitting that into
another table access now has to allocate only 5000 characters.
In access say it was a text field
with the default 50 character limit. For 100,000 records access has to
put aside space for all the records and fields.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.