Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> comp.databases.theory -> Re: Question about "linking tables"

Re: Question about "linking tables"

From: Bob Stearns <rstearns1241_at_charter.net>
Date: Sat, 19 May 2007 01:51:09 -0400
Message-ID: <2gw3i.5870$G%4.2339@newsfe03.lga>


Kevin Porter wrote:
>
> Folks,
>
> I have a theory question regarding relational databases and linking tables:
>
> I saw an example where there were three tables, Books, Authors, and Categories,
> each with a sequential ID for a primary key.
>
> Now instead of having a field in Books that pointed to the foreign key in
> Authors, they had a linking table that had just the foreign keys listing the
> relationship between all the items in both tables. Then they had the same kind
> of table between Categories and Books, just with the foreign keys in it.
>
> So what is the advantage of having the linking table instead of the two foreign
> keys directly in the Books table? Is it easier for the users? Or is there
> database theory at work that I don't understand?
>
> Thanks - Bob
>

Consider that one author can have many (unknown number) books, one book many authors, and similarly categories and books Received on Sat May 19 2007 - 00:51:09 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US