A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

One Table Relates to Many Fields In Other Table



 
 
Thread Tools Display Modes
  #1  
Old March 31st, 2005, 02:19 AM
Murp
external usenet poster
 
Posts: n/a
Default One Table Relates to Many Fields In Other Table

I am using Access 2002 on Windows XP.

I am working with a table that stores book title information. Each book has
8 columns for author names (Author1, Author2, Author3, etc.) and 8 columns
for author type (AuthorType1, AuthorType2, AuthorType3, etc.). The 8 author
type fields all draw information from 1 table that lists each author type.

How can I create a one-to-many relationship from one table to multiple
fields in another table?

Or is the problem my table design?
--
Yo Yo Ma.
  #2  
Old March 31st, 2005, 02:55 AM
John Vinson
external usenet poster
 
Posts: n/a
Default

On Wed, 30 Mar 2005 17:19:12 -0800, "Murp"
wrote:

I am using Access 2002 on Windows XP.

I am working with a table that stores book title information. Each book has
8 columns for author names (Author1, Author2, Author3, etc.) and 8 columns
for author type (AuthorType1, AuthorType2, AuthorType3, etc.). The 8 author
type fields all draw information from 1 table that lists each author type.

How can I create a one-to-many relationship from one table to multiple
fields in another table?


You can't, without a lot of complexity. You'ld need to create a query
joining your book table to the Authors table and the AuthorType table,
adding EIGHT instances of each table, using left joins for all sixteen
joins. This will not be updateable and will possibly not work at all.

Your table structure is incorrect.

If you have a many (books) to many (authors), model it as a many to
many relationship!

Books
BookID
Title
other info about the book as an object

Authors
AuthorID
LastName
FirstName
maybe other bio information

Authorship
BookID ' what book are you talking about
AuthorID ' who wrote it
AuthorType ' what type of author was she

AuthorTypes
AuthorType Primary Key


If a book has five authors, there'd be five records for it in
Authorship; if it has ten there would be ten - and an insuperable
problem for your incorrectly normalized design.

John W. Vinson[MVP]
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Update - If statement Dan @BCBS Running & Setting Up Queries 13 December 14th, 2004 06:02 PM
Manual line break spaces on TOC or Table of tables Eric Page Layout 9 October 29th, 2004 04:42 PM
Automatic filling of fields in table two from table one Jim Kelly Database Design 1 September 27th, 2004 10:16 PM
Complicated Databse w/many relationships Søren Database Design 7 July 13th, 2004 05:41 AM
Name not showing ID is René Setting Up & Running Reports 11 June 29th, 2004 01:40 AM


All times are GMT +1. The time now is 09:28 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.