You are here: Re: Database design question « MsSQL Server « IT news, forums, messages
Re: Database design question

Posted by Erland Sommarskog on 08/09/06 22:16

Christian H (no@ni.na) writes:
> The other solution , as far as we can see, is to put all values into 1
> table, and use CustomerID=-1 or null when the item is a System-defined
> value, and not a customer-defined value.
>
> DropDownValues_CustomerAndSystemDefined
> ----------------------------------------
> ID
> CustomerID
> Name
> Value

Your description is very abstract, and I might change my mind if knew
more about what's in this table. But from the description you have
given, this latter solution is what I would prefer.

The presumption here is that the values really describe the same
entity.


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

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация