Re: Variable list of values in column

From: Roji. P. Thomas (lazydragon_at_nowhere.com)
Date: 02/22/04


Date: Sun, 22 Feb 2004 15:54:23 +0530


>>you are storing the same data repeatedly d)
>>people will laugh at you. :)

Even your design stores data repeatedly.
You have only reached 1NF.

-- 
Roji. P. Thomas
SQL Server Programmer
"Kirk Graves" <krgitsoftware@yahoo.com> wrote in message
news:%23Xw6VpL%23DHA.2324@tk2msftngp13.phx.gbl...
> The data structure you need would actually look like this
>
> Table:  Project
> Fields: ProjectID
>            Name
>
> Table:  Supplier
> Fields:  SupplierID
>             Name
>             ProjectID
>
> Table:  Part
> Fields:  PartID
>             Name
>             ProjectID
>
> using a comma delimeted list of values in a a field breaks the first rule
of
> normalization.  this just means that a) searching is very difficult  b)
> updating is very difficult  c) you are storing the same data repeatedly d)
> people will laugh at you.   :)
>
> Kirk Graves
> KRGIT Software
>
> "Cameron" <cam_banks@hotmail.com> wrote in message
> news:2cc8a69e.0402211154.7796dcf0@posting.google.com...
> > I've just started to work with databases for a project that requires
> > SQL Server, so I'm learning all of this as I design and develop the
> > application.  Anyway I need to create a table that has the following
> > structure
> >
> >
> > Project
> > {
> >    UniqueID
> >    Name
> >    List of suppilers
> >    List of parts
> > }
> >
> > The two columns "List of suppilers" and "List of parts" are dynamic,
> > so for a given project it is desirable to add and remove "suppilers"
> > and "parts".  It is also desirable to construct searches over projects
> > that contain a supplier or part.
> >
> > After some digging it would appear that the best way to store these
> > lists would be comma separated values.  So the question I have is how
> > do I construct T-SQL searches and if a part or supplier is removed how
> > does I ensure the lists in the project table are updated.
> >
> >
> > Cheers
> >
> > Cameron
>
>


Relevant Pages

  • Re: Real-World Sample Application?
    ... That said too you want to learn all you can about LINQ and learn it BEFORE you even touch SQL Server should you be foolish enough to try to fake your way through because you've used VB and think you know what you are doing. ... a couple of bound controls would probably ... Lists items in a hierarchical list that the user can ... Shows details of the currently-selected parent record and, ...
    (microsoft.public.dotnet.general)
  • Re: Real-World Sample Application?
    ... Pete did say he had a lot of development experience but implied NONE NADA ZIP using .Net is this not correct? ... That said too you want to learn all you can about LINQ and learn it BEFORE you even touch SQL Server should you be foolish enough to try to fake your way through because you've used VB and think you know what you are doing. ... Lists items in a hierarchical list that the user can ... Shows details of the currently-selected parent record and, ...
    (microsoft.public.dotnet.general)
  • Re: Real-World Sample Application?
    ... in .NET with a SQL Server back end? ... a couple of bound controls would probably ... Lists items in a hierarchical list that the user can ... Shows details of the currently-selected parent record and, ...
    (microsoft.public.dotnet.general)
  • Real-World Sample Application?
    ... in .NET with a SQL Server back end? ... a couple of bound controls would probably ... Lists items in a hierarchical list that the user can ... Shows details of the currently-selected parent record and, ...
    (microsoft.public.dotnet.general)
  • Re: Full Text Search, CONTAINS or FREETEXT
    ... I have not figure out how to extract "last modified user" of a document, ... > the search is performed by using a FREETEXT statement. ... > The following table lists and describes the searching features available ... > when you use SQL Server full-text searching. ...
    (microsoft.public.sharepoint.windowsservices)