You are here: Re: Normalizing a Crosstab « MsSQL Server « IT news, forums, messages
Re: Normalizing a Crosstab

Posted by David Portas on 10/02/14 11:56

imani_technology_spam@yahoo.com wrote:
> Sorry, I guess the new table got cut off. Hopefully, this can help:
>
> CREATE TABLE [dbo].[Sensitivities](
> [SensiID] [smallint] IDENTITY(1,1) NOT NULL,
> [AntibioticID] [smallint] NULL,
> [SourceID] [smallint] NULL,
> [SusceptID] [smallint] NULL,
> [OrganismID] [smallint] NULL,
> [SensiNote] [varchar](255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,

You call that normalized!? Why make all those columns nullable? What is
the natural key supposed to be?

--
David Portas, SQL Server MVP

Whenever possible please post enough code to reproduce your problem.
Including CREATE TABLE and INSERT statements usually helps.
State what version of SQL Server you are using and specify the content
of any error messages.

SQL Server Books Online:
http://msdn2.microsoft.com/library/ms130214(en-US,SQL.90).aspx
--

 

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

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