Unix Technical Forum

Database design question...

This is a discussion on Database design question... within the SQL Server forums, part of the Microsoft SQL Server category; --> I have a situation that some of you may be of help. I will name the tables specifically so ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 06:14 PM
Member
 
Posts: n/a
Default Database design question...

I have a situation that some of you may be of help. I will name the tables
specifically so you can understand what I am talking about.

I have a COS_species table....the information in it cannot be changed.

Everything in this database is pretty much centered around the speciesID. We
also want other species that are no included in the COS_Species table.
Specifically....we want to be able to handle multi species which would
contain many of the species from COS_Species.

So...I would create a new table called Multi_Species and then a linking
table MultiSpeciesLink to link the 2 tables together.

The problem is....since everything is supposed to be centered around the
SpeciesID, how do I manage that since a speciesID can come from 2 different
tables?

Thanks for any input.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 06:14 PM
Daniel Morgan
 
Posts: n/a
Default Re: Database design question...

Member wrote:

>I have a situation that some of you may be of help. I will name the tables
>specifically so you can understand what I am talking about.
>
>I have a COS_species table....the information in it cannot be changed.
>
>Everything in this database is pretty much centered around the speciesID. We
>also want other species that are no included in the COS_Species table.
>Specifically....we want to be able to handle multi species which would
>contain many of the species from COS_Species.
>
>So...I would create a new table called Multi_Species and then a linking
>table MultiSpeciesLink to link the 2 tables together.
>
>The problem is....since everything is supposed to be centered around the
>SpeciesID, how do I manage that since a speciesID can come from 2 different
>tables?
>
>Thanks for any input.
>
>
>

You have a major design problem. That the speciesID can come from two
different tables is the problem
that must be solved first. No doubt Joe Celko can quote you chapter and
verse on this one so before he
does you might want to check some of his numerous posts on what a table
is and make the appropriate
change.

What you describe will turn into a reporting nightmare if it is not
quickly remedied.

--
Daniel Morgan
http://www.outreach.washington.edu/e...ad/oad_crs.asp
http://www.outreach.washington.edu/e...oa/aoa_crs.asp
damorgan@x.washington.edu
(replace 'x' with a 'u' to reply)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:08 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com