Re: Relational Database Question
From: Adam Machanic (amachanic_at_hotmail._removetoemail_.com)
Date: 11/02/04
- Next message: Bonj: "RE: is this bad?"
- Previous message: Andreas Tscharner: "ConnectionWrite(send()) errors"
- In reply to: Rob Meade: "Relational Database Question"
- Next in thread: Rob Meade: "Re: Relational Database Question"
- Reply: Rob Meade: "Re: Relational Database Question"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 2 Nov 2004 11:26:07 -0500
Rob,
The first architecture, using the BookAssociations table, is much more
flexible, as it allows for the possibility of books being written by
multiple authors. So that's a much more realistic way of architecthing the
data.
Neither of these has any bearing on whether your database is 'relational',
however. The Relational Model of Data is the underlying theory behind the
DBMS's architecture itself, below the level at which your schema resides.
You should read a text on databases if possible. I highly recommend Chris
Date's _Introduction to Database Systems_.
-- Adam Machanic SQL Server MVP http://www.sqljunkies.com/weblog/amachanic -- "Rob Meade" <robb.meade@NO-SPAM.kingswoodweb.net> wrote in message news:zpOhd.5046$up1.975@text.news.blueyonder.co.uk... > Hi all, > > Sorry if this isn't directly related to SQL Server, although that is my > "weapon of choice" as it were... > > I have a few simple tables, and I'm trying to decide whether my planning and > thinking is correct. > > I want to ensure that I have a relational database, but my previous tables > are 'related' through another table, can anyone confirm whether this is > correct or not? > > for example: > > Authors > -------- > AuthorID > AuthorName > > Books > ------- > BookID > BookTitle > > BookAssocations > ------------------ > AssociationID > BookID > AuthorID > > > This is how I have things 'mostly' at the moment...but I'm wondering whether > in fact the structure should be like this: > > Authors > -------- > AuthorID > AuthorName > > Books > ------- > BookID > AuthorID > BookTitle > > > If anyone could chip in on this I would be grateful, I already have a > database in use and I'm adding to it with the intention of going back and > correcting the rest, but whilst I add new tables/views/stored procedures and > the like I would like to "get it right".. > > Your help is appreciated, > > Regards > > Rob > >
- Next message: Bonj: "RE: is this bad?"
- Previous message: Andreas Tscharner: "ConnectionWrite(send()) errors"
- In reply to: Rob Meade: "Relational Database Question"
- Next in thread: Rob Meade: "Re: Relational Database Question"
- Reply: Rob Meade: "Re: Relational Database Question"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|