Re: Database design and normalization question

From: ./Rob & <invalid_at_invalid.net>
Date: Wed, 26 May 2004 14:17:28 -0400
Message-ID: <hbWdnST9weWiQindRVn-ig_at_speakeasy.net>


"Alan" <alan_at_erols.com> wrote in message news:2hjjt7Fdj7mlU1_at_uni-berlin.de...
>
> First, take the "ForeignKey" portion out of your names. It has no place
> being there. What happens if that attribute is no longer a foreign key (it
> can happen). You would have to change the name for clarity. This is a
VERY
> BAD THING.
Thanks for the reply Alan.

The foreignKey portion was used for example clarity. However, that's really good advice.
The thought of a foreign key no longer being a foreign key never crossed my mind. I'll be something for me to avoid in the future.

-Rob

>
> "./Rob &" <invalid_at_invalid.net> wrote in message
> news:H6GdnXoVM_ohai7dRVn-uA_at_speakeasy.net...
> > I'm designing a database to keep a list of my current projects, and
> various
> > details about them.
> > I'm stuck on the normalization and design aspects.
> >
> > Here is the layout:
> >
> > [Project]
> > ---------
> > Project_ID
> > Project_Description
> > Date_Entered
> > Time_to_Complete_Estimation
> > Deadline
> > Start_Time
> > Stop_Time
> > Total_Time
> > Final_Details
> > Status_ID_ForeignKey
> > Priority_ID_ForeignKey
> > Owner_ID_ForeignKey
> > Category_ID_ForeignKey
> > Priority_ID_ForeignKey
> >
> > [Category]
> > -----------
> > Category_ID
> > Category_Name
> > Sub_Category_ID_ForeignKey
> >
> > [Sub_Category]
> > -----------------
> > Sub_Category_ID
> > Sub_Category_Name
> >
> > [Status]
> > --------
> > Status_ID (Only 3. <Pending|Working|Closed>)
> > Status_Name
> >
> > [Priority]
> > ---------
> > Priority_ID
> >
> > Here are my questions:
> >
> > The "Time_to_Complete_Estimation" could be 1 day, 2 days, etc. Chances
are
> > the data will repeat. Should I make this it's own entity?
> >
> > Since I may want to pull data on how much time I spent working on a
> > particular category, should I make "Total_Time" it's own entity?
> >
> > If I did make "Total_Time" it's own entity, how would I set up the
table?
> >
> > Since the "Status" entity will only have 1 of 3 values, could I just
make
> > the Status_ID the Status_Name, and take out the Status_Name all
together?
> >
> > Any suggestions in improving the design efficiency?
> >
> > Thanks in advance.
> >
> > -Rob
> >
> >
>
>
Received on Wed May 26 2004 - 20:17:28 CEST

Original text of this message