Microsoft Office TrainingThe UK's Number 1 for Microsoft Office Training Sitemap add this page to your favourites/bookmarksBookmark page
 
view a printable version of this pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

articleA Brief Guide To Table Relationships In Access

If you're starting to use Microsoft Access you may be able to create tables and queries and perhaps Forms and Reports. During your work with tables you may have also created links between tables. This article describes some of these linked relationships and how they can be used. For a fuller understanding of table relationships it is best to consider attending a Microsoft Access training course to learn lots more about this.

Table relationships in Access come in three varieties. These are one to many, one to one and many to many. The first type is the one to many relationship. For example one customer can place many orders. A company database might contain a Customers table and an Orders table. The Customers table lists all current customers, with table headings customer ID, customer name, address, town etc. The customer ID column will be a unique code to identify each customer.

The Orders table lists all current orders, with table headings order ID, customer ID, order date, number of items, cost etc. The database designer would have created a link between the customer ID field in the Customer table and the customer ID field in the Orders table. When the sales assistant takes a new order from an existing customer they would open the Orders table, add a new order record and this would include in the customer ID to identify the customer making the order.

Later the finance clerk would run a query using the two tables, to prepare the invoice. The invoice query would use the customer ID from the Customers table to extract the customer name and address and the order ID to extract the order number of items and cost from the Orders table. The linked tables would allow one customer to make many orders. This is a one to many relationship.

The second type is the one to one relationship. For example one employee has only one company car. Suppose our company staff need company cars to travel around the country. Our company database has a Staff table to list all out staff details with headings; staff ID, name, post, date joined etc. We also have a Cars table to list all the company cars with headings; car ID, Staff ID, make, colour etc. Our database designer has created a link between the staff ID field in the Staff table and the staff ID in the Cars table.

Then the duty manager assigns each car to a member of staff by adding one record in the Cars table per car. The staff ID in the Cars table identifies which member of staff has that car. And the database designer has configured the Cars table to allow only one car per member of staff. So the linked tables would allow one employee to be assigned to only one car. This is a one to one relationship.

The third type is the many to many relationship. For example many doctors can see many patients. Suppose you visit your doctor one day, get seen and go home again. You still feeling unwell so you visit your doctor again a few days later. These days many people attend a medical centre rather than a doctor's surgery, so on this second occasion you're seen by a different doctor. In fact there's a pool of doctors who see all the patients. OK you personally might still be visiting a doctor's surgery, but I'm sure you get the idea.

The medical centre database has three tables, not two, to achieve this. There's a Doctors table listing details for all the centre doctors with headings doctor ID, name, speciality, date joined etc. There's also a Patients table listing all the registered patients with headings such as patient ID, name, address, contact tel etc.

The database contains a third table which is used to link between the other two tables. The Link table has these two fields, doctor ID and patient ID. The designer links the doctor ID field in the Doctors table to the doctor ID field in the Link table and the patients ID field in the Patients table to the patients ID field in the Link table. The Link table is used by the receptionist to record every visit, so the table also has the fields Visit ID, Visit Date, Outcome etc.

To record each medical centre visit the receptionist adds a new record to the Link table. The doctor ID field is used to extract the doctor's details and the patient ID field to extract the patient details from the Patients table. These three linked tables allow many doctors to see many patients. This is a many to many relationship.

So there you have it - table relationships in Access. Relational databases such as Access allow users to relate data in one table to data in another table through these linked relationships.

Author is a freelance copywriter. For more information on microsoft access advanced training, please visit http://www.microsofttraining.net


Original article appears here:
http://www.microsofttraining.net/article-577-a-brief-guide-table-relationships-in-access.html


Back to article list

Distribution notes

PUBLICATION GUIDELINES

  • You have permission to publish this article for free providing the "About the Author" box is included in its entirety.
  • Do not post/reprint this article in any site or publication that contains hate, violence, porn, warez, or supports illegal activity.
  • Do not use this article in violation of the US CAN-SPAM Act. If sent by email, this article must be delivered to opt-in subscribers only.
  • If you publish this article in a format that supports linking, please ensure that all URLs and email addresses are active links, without the rel='nofollow' tag.
  • Software Training London Ltd. owns this article. Please respect the author's copyright and above publication guidelines.
  • If you do not agree to these terms, please do not use this article.

Rate this page:
2.8/5 (129 votes cast)
Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses
Microsoft Certified Partner
Security Seal verified by visa, mastercard securecard

Mini sitemap. These are the main areas of our web site. Full sitemap.

Management training

Professional Skills courses
Project Management Course London
Project Management Courses London
Project Management Training London
Project Management Training
Project Seminar
Project Seminars
Time Management Course London
Time Management London
Time Management Courses London
Time Management Training London
Introduction to Finance course
Assertiveness Skills course
Effective Communications Skills training
Presentation Skills London

Training Formats

Public scheduled courses
On-site training
Closed company courses

Consultancy
Application Development

Blogs

Excel Training
MS Project Training
Microsoft Training Blog

Version differences

Office 2010 vs 2007
MS Project version differences

Training Information

London Computer Training
Computer Training London
Docklands Training Courses
Docklands Training London

Training venues London
Client list
FAQ
Pricing and availability
Course details / Syllabus

Training Articles
Training Information

Microsoft training

Microsoft Office training
& IT Applications

Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training
MS Project courses
MS Project training
Outlook courses
PowerPoint courses
PowerPoint training
VBA courses
Word courses
Microsoft.training
(more...)

Excel Training

Excel courses
Excel Training Courses Medway
Autonumber in Excel
Microsoft Excel training
Basic Excel Courses
Basic Excel Course
Basic Excel Training

Interested in MS Access training?

Access courses
Microsoft Access training
Microsoft access courses
Microsoft training access course
Microsoft+access+training
Access courses in london

Training provider

Training providers
IT training companies
IT training providers
Management Training providers
Management Training provider

Event history, feedback results
Events in 2012 · 2011 · 2010 · More

See also

Crystal Reports training