Hey all, I'm a newbie studying info systems. Just a simple question that everyone probably knows.
To avoid data redundancy, you would only want the same field to be listed twice in a database in order to link tables? Or is there any other reason to have the same field listed more than twice? I'm dealing with a compound key table to make a many to m any relationship
2 1770
Hey all, I'm a newbie studying info systems. Just a simple question that everyone probably knows.
To avoid data redundancy, you would only want the same field to be listed twice in a database in order to link tables? Or is there any other reason to have the same field listed more than twice? I'm dealing with a compound key table to make a many to m any relationship
In many to many relationships you need three tables. This breaks it down into two one to many relationships. In this case the middle table acts as a linking table in which you have 3 basic fields: A primary key and two foreign keys.
I personally do not like composite primary keys (i.e. using more than one field to create the unique value required for a primary key). They are too complicated for general consumption and are tricky to refer to when using them as foreign key references in other tables. Access provides the Autonumber data type for the express purpose of creating a unique easily digestible primary key, and when used correctly it greatly simplifies relationships.
Have a look also at this tutorial: Database Normalisation and Table Structures
Regards,
Scott
And to answer your question more precisely: No, there is no reason to limit the number of times a field can show up in relationships. When linking between tables the primary key from one table is used as a foreign key in another table, and there are really no artificially imposed limits on how many times one table can be linked to other tables.
Regards,
Scott
Sign in to post your reply or Sign up for a free account.
Similar topics
by: James Walters |
last post by:
Hello,
DB novice checking in here with a basic design
question. I have a table called 'nms_apps' which
stores information about all of our applications which
we have developed/maintained for...
|
by: nick |
last post by:
Hi,
I'm pretty much a database beginner and have what I think is a basic
question:
If I have a table which has a 'status' column and I can have say three
statuses: "active", "pending",...
|
by: rodneybauer1 |
last post by:
hello: thanks in advance for any responses.
i dont have a isp at home so have to use public library computer. will check
this every couple days though.
im using visual basic.Net windows XP with...
|
by: DH |
last post by:
I have a VERY basic question about figuring database size. I've inherited a
database which is generally similar to this basic one:
Item, Red, Blue, Green, Yellow
(text), (int),(int),(int),(int)...
|
by: Bob Alston |
last post by:
I am looking for any Microsoft Access based software that could be used
for a United Way agency that provides basic needs assistance - food,
clothing, financial (rent, utilities, Rx, gasoline,...
|
by: |
last post by:
I was trying to display a report on a web page. I added a report object to
my project and dropped a report viewer control on the page. I assigned the
reportsource property in page_load, but I...
|
by: Mason Barge |
last post by:
I'm learning how to build a website. So far I've gotten pretty good
with HTML, CSS, and Paint Shop Pro, and I'm currenly learning the
basics of Javascript.
I'm hoping, eventually, to build and...
|
by: JB |
last post by:
Hi All,
I need to write my first "distributed" application and due to my lack
of knowledge and experience in that area, I'm stuck on the first big
design decision. Reading a lot on distributed...
|
by: vbsoft |
last post by:
Hello My Name is Mike
Am from Nigeria a student of computer Science,
Pls i want your You to help in
Using VISUAL BASIC 6.0 AND MS SQL SERVER AS DATABASE AS A CLIENT SERVER SIDE
pLS: I...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |