RE: Tables Question
From: Ron Erwin (ronerwin_at_u.washington.edu)
Date: 10/03/04
- Previous message: John Vinson: "Re: Are three primary keys less effecient than two?"
- In reply to: Karen: "RE: Tables Question"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 3 Oct 2004 16:33:30 -0700 To: Karen <Karen@discussions.microsoft.com>
You need to design your tables and database...
First put similar fields together.. then identify keys for these tables..
Determine the relationship between the tables and add foreign keys as
needed to handle one to many relaionships .. or many-to-many
relationships.
I can see several tables:
Salesman Personal info
Earnings
Earnings type (key) Real/Projected
You can carry the type values in a third table.
Follow the database normalization processes.
Ron Erwin
(206) 465-8484
====================================================================
Business Administration (Information Systems)
Music Minor (Voice, Keyboard)
====================================================================
On Thu, 30 Sep 2004, [Utf-8] Karen wrote:
> They may have CommittedBus for 2004 and 2005. Not sure how to separate the
> years.
>
> "anonymous@discussions.microsoft.com" wrote:
>
>> Just an idea, but what about:
>> tblPlans
>> Year
>> Salesperson
>> SalesPlan
>> CommittedBus (filled in as the year progresses)
>> ProjectedBus (filled in as the year progresses)
>>
>> These records could later be sorted and filtered on the
>> year field if desired.
>>
>>> -----Original Message-----
>>> I have currently have multiple tables with the following:
>>>
>>> tbl2003Plans
>>> Salesperson
>>> 2003SalesPlan
>>> CommittedBus (filled in as the year progresses)
>>> ProjectedBus (filled in as the year progresses)
>>> tbl2004Plans
>>> Salesperson
>>> 2004SalesPlan
>>> CommittedBus (filled in as the year progresses)
>>> ProjectedBus (filled in as the year progresses)
>>>
>>> I know this is not good table design. I do not know how
>> to best design the
>>> tables so that I do not have to create a table for each
>> new year of business.
>>> I have a salesperson table with the names of the sales
>> people.
>>>
>>> Thanks for any advice.
>>> .
>>>
>>
>
- Previous message: John Vinson: "Re: Are three primary keys less effecient than two?"
- In reply to: Karen: "RE: Tables Question"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|