Re: Database design and normalization question

From: Alan <alan_at_erols.com>
Date: Wed, 26 May 2004 09:21:01 -0400
Message-ID: <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. "./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 - 15:21:01 CEST

Original text of this message