Path: news.easynews.com!easynews!priapus.visi.com!news-out.visi.com!hermes.visi.com!news.maxwell.syr.edu!kibo.news.demon.net!news.demon.co.uk!demon!diamond9.demon.co.uk!shrdlu.com!bap
From: Bernard Peek <bap@shrdlu.com>
Newsgroups: comp.databases.theory
Subject: Re: re-designing & normalizing - best way to go about this?
Date: Fri, 12 Apr 2002 18:11:47 +0100
Organization: z
Message-ID: <1asCuTmTVxt8EwWD@shrdlu.com>
References: <c883e8dd.0204111430.ede7e7f@posting.google.com>
NNTP-Posting-Host: diamond9.demon.co.uk
X-NNTP-Posting-Host: diamond9.demon.co.uk:193.237.35.141
X-Trace: news.demon.co.uk 1018632081 nnrp-12:26031 NO-IDENT diamond9.demon.co.uk:193.237.35.141
X-Complaints-To: abuse@demon.net
MIME-Version: 1.0
Content-Type: text/plain;charset=us-ascii;format=flowed
User-Agent: Turnpike/6.01-U (<X3o2ybMfY6cMYO2GsRWjMGZsME>)
Lines: 37
Xref: easynews comp.databases.theory:20421
X-Received-Date: Fri, 12 Apr 2002 10:19:44 MST (news.easynews.com)

In message <c883e8dd.0204111430.ede7e7f@posting.google.com>, D Newsham 
<d_newsham@hotmail.com> writes
>Hi all,
>
>Any advice will be appreciated here.  I have been tasked with
>re-designing a database that, IMHO, is a mess.  All of the data is in
>one table, fields:
>

>My questions are:
>Does it look like I am achieving my goal?  I began breaking down the
>main table and what I found was, for instance - in the Species table,
>I may have 200 of the same class, family, genus - and the species is
>different.  Should I have a seperate table each for class, family,
>genus... my thinking is not, because the species is dependant on the
>other 3 fields, but when I look at 2500 entries in the species table
>and see class repeated over and over... I am not sure.

It's a compromise. You could choose to build a database that sticks 
closely to the logical structure of the data, and have separate tables 
for every level of the hierarchy from Kingdom to Species or perhaps even 
down to strain for subspecies.

In general if you stray from the logical structure you will find that 
you need to do more programming to handle possible duplications in your 
data. And if anyone is going to search the database for all members of a 
given Class then it's best to only record the Class only once, in a 
Classes table.



-- 
Bernard Peek
bap@shrdlu.com

In search of cognoscenti

