Unix Technical Forum

Re: Table design request for comment. (Help please)

This is a discussion on Re: Table design request for comment. (Help please) within the SQL Server forums, part of the Microsoft SQL Server category; --> Mark (mark.rullo@gmail.com) writes: > Hi there gurus, can you please add your 2 cents on this design? We're > ...


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-29-2008, 08:56 PM
Erland Sommarskog
 
Posts: n/a
Default Re: Table design request for comment. (Help please)

Mark (mark.rullo@gmail.com) writes:

> Hi there gurus, can you please add your 2 cents on this design? We're
> having trouble relating these tables in a diagram because of the keys.
> Is it necesary to have the references setup? I would assume yes so the
> forign keys can be setup.
>
> If you look at this link, you'll see our diagram. In Red are the
> relationships that we would like to make for referential integrity, but
> cannot because of the keys.
> http://rullo.ca/linktome/QuestionsDB.jpg


It's not clear from the diagram, in which direction you want the relation
to go. If my guess is right, you need to add QuestionGroupID to the tables
QuestionAnswerName and QuestionNames. Really what QuestionAnswer relates
to is not clear. When I think of it, maybe QuestionAnswer should have an
FK to QuestionGroupDetails, and thus also have a QuestionGroupID. And
QuestionAnswerName should relate to QuestionAnswer, not
QuestionGroupDetails.

> -Q1| QNameID = 1 | "-French - Do you have a chien in your appartment?"
>| LangID = 2(fr)


"Est-ce que vous avez un chien dans votre appartement?" :-)

> The difficulty is when we try and put this in the group details table.
> We don't want to outline the Language, we'd just pass the language into
> a proc to retreive a specific group with a specific language. If you
> folks would be so kind as to add your comments to the design I would be
> truely grateful.


I fail to see what the proc has to do with the data model.


And next time, please do not post the same question independently to
multiple newsgroups.

--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
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 12:58 PM.


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