 




<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Creating tables on a SQL Server</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/creating-tables-on-a-sql-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/creating-tables-on-a-sql-server/</link>
	<description></description>
	<lastBuildDate>Fri, 24 May 2013 19:50:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: etcgman</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/creating-tables-on-a-sql-server/#comment-59211</link>
		<dc:creator>etcgman</dc:creator>
		<pubDate>Thu, 15 Jan 2009 17:11:18 +0000</pubDate>
		<guid isPermaLink="false">#comment-59211</guid>
		<description><![CDATA[Hey guys,
The response given by Kccrosser is the guidance I was looking for. Thank you all for helping me get through this. See you soon.

Regards]]></description>
		<content:encoded><![CDATA[<p>Hey guys,<br />
The response given by Kccrosser is the guidance I was looking for. Thank you all for helping me get through this. See you soon.</p>
<p>Regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kccrosser</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/creating-tables-on-a-sql-server/#comment-59189</link>
		<dc:creator>kccrosser</dc:creator>
		<pubDate>Wed, 14 Jan 2009 20:42:58 +0000</pubDate>
		<guid isPermaLink="false">#comment-59189</guid>
		<description><![CDATA[A couple of things come to mind.

You say there are 4816 business &quot;categories&quot;.  (That seems pretty large, but...)  My strong suspicion is that any given business could belong in more than one &quot;category&quot; - especially if it is broken down that far.  I would be looking at a database structure with at least the following tables:
* Business (containing the &quot;unique&quot; information for that business - likely just a BusinessID and the Name - I usually like to add &quot;extended&quot; information [addresses, phones, contacts, etc.] in subordinate tables, keyed off the BusinessID) (primary key = BusinessID)
* Categories (containing a list of unique CategoryID and CategoryName values) (primary key = CategoryID)
* BusinessToCategory (containing a many-to-many association between BusinessID and CategoryID) (primary key = BusinessID+CategoryID) (&quot;many-to-many&quot; assuming that any business could belong in multiple categories, and clearly multiple businesses could belong in the same category)

The comment about a &quot;table&quot; being normalized is a bit odd.  An individual table has no &quot;normalization&quot; - it is the (unnecessary) duplication of information between tables that determines the normalization of the database.

By definition, for a relational database to work, there must be some duplication of information between tables - otherwise, there is no way to link the tables in a query.  When the amount of duplication is minimized, the database is considered to be highly normalized.

The above example structure would be considered at least a 4th Normal Form database, as there isn&#039;t any way to reduce the redundant data (the ID columns) used to link the tables.  (I will leave it to the computer scientists to argue whether it is 5th or 6th form - &lt;grin&gt;)


On a minor technical note, beware of Zip Codes as primary keys - Zip Codes can span multiple &quot;cities&quot;.  In some cases, Zip Codes actually span State boundaries.]]></description>
		<content:encoded><![CDATA[<p>A couple of things come to mind.</p>
<p>You say there are 4816 business &#8220;categories&#8221;.  (That seems pretty large, but&#8230;)  My strong suspicion is that any given business could belong in more than one &#8220;category&#8221; &#8211; especially if it is broken down that far.  I would be looking at a database structure with at least the following tables:<br />
* Business (containing the &#8220;unique&#8221; information for that business &#8211; likely just a BusinessID and the Name &#8211; I usually like to add &#8220;extended&#8221; information [addresses, phones, contacts, etc.] in subordinate tables, keyed off the BusinessID) (primary key = BusinessID)<br />
* Categories (containing a list of unique CategoryID and CategoryName values) (primary key = CategoryID)<br />
* BusinessToCategory (containing a many-to-many association between BusinessID and CategoryID) (primary key = BusinessID+CategoryID) (&#8220;many-to-many&#8221; assuming that any business could belong in multiple categories, and clearly multiple businesses could belong in the same category)</p>
<p>The comment about a &#8220;table&#8221; being normalized is a bit odd.  An individual table has no &#8220;normalization&#8221; &#8211; it is the (unnecessary) duplication of information between tables that determines the normalization of the database.</p>
<p>By definition, for a relational database to work, there must be some duplication of information between tables &#8211; otherwise, there is no way to link the tables in a query.  When the amount of duplication is minimized, the database is considered to be highly normalized.</p>
<p>The above example structure would be considered at least a 4th Normal Form database, as there isn&#8217;t any way to reduce the redundant data (the ID columns) used to link the tables.  (I will leave it to the computer scientists to argue whether it is 5th or 6th form &#8211; &lt;grin&gt;)</p>
<p>On a minor technical note, beware of Zip Codes as primary keys &#8211; Zip Codes can span multiple &#8220;cities&#8221;.  In some cases, Zip Codes actually span State boundaries.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mrdenny</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/creating-tables-on-a-sql-server/#comment-59168</link>
		<dc:creator>mrdenny</dc:creator>
		<pubDate>Tue, 13 Jan 2009 21:10:52 +0000</pubDate>
		<guid isPermaLink="false">#comment-59168</guid>
		<description><![CDATA[You could create a seperate table called ZipCode with the ZipCode being the primary key, and other columns being City, State, Country.  While this would be technically correct most people do not bother doing this as the increased management overhead isn&#039;t worth the disk savings.]]></description>
		<content:encoded><![CDATA[<p>You could create a seperate table called ZipCode with the ZipCode being the primary key, and other columns being City, State, Country.  While this would be technically correct most people do not bother doing this as the increased management overhead isn&#8217;t worth the disk savings.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: etcgman</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/creating-tables-on-a-sql-server/#comment-59159</link>
		<dc:creator>etcgman</dc:creator>
		<pubDate>Tue, 13 Jan 2009 17:45:49 +0000</pubDate>
		<guid isPermaLink="false">#comment-59159</guid>
		<description><![CDATA[It was my understanding that any duplication of data in a table puts the table out of normalization. For example - the city, state and zip codes of this table in most instances makes that the case however, I cannot see a situation where that would not be the case even if I separated these fields and put them in a separate table. The separated table [third table] would now be out of normalization. But I am encouraged by Mario&#039;s response since that was my original thought, to create a second table to house my data.]]></description>
		<content:encoded><![CDATA[<p>It was my understanding that any duplication of data in a table puts the table out of normalization. For example &#8211; the city, state and zip codes of this table in most instances makes that the case however, I cannot see a situation where that would not be the case even if I separated these fields and put them in a separate table. The separated table [third table] would now be out of normalization. But I am encouraged by Mario&#8217;s response since that was my original thought, to create a second table to house my data.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/creating-tables-on-a-sql-server/#comment-59126</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Mon, 12 Jan 2009 18:31:36 +0000</pubDate>
		<guid isPermaLink="false">#comment-59126</guid>
		<description><![CDATA[&quot;&lt;i&gt;Would the second table ever be Normalized beyond Normal 1?&lt;/i&gt;&quot;

Yes, it could.

Do you think it won&#039;t ?  why ?

What normal form do you think this design violates ?]]></description>
		<content:encoded><![CDATA[<p>&#8220;<i>Would the second table ever be Normalized beyond Normal 1?</i>&#8221;</p>
<p>Yes, it could.</p>
<p>Do you think it won&#8217;t ?  why ?</p>
<p>What normal form do you think this design violates ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: etcgman</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/creating-tables-on-a-sql-server/#comment-59115</link>
		<dc:creator>etcgman</dc:creator>
		<pubDate>Mon, 12 Jan 2009 14:35:56 +0000</pubDate>
		<guid isPermaLink="false">#comment-59115</guid>
		<description><![CDATA[Hi, and thanks for the response. Just want to make sure I understand. You are saying - create the categories table, then create another table where all businesses record information is placed along with a forieng key field, which links the records to the categories table? Would the second table ever be Normalized beyond Normal 1?]]></description>
		<content:encoded><![CDATA[<p>Hi, and thanks for the response. Just want to make sure I understand. You are saying &#8211; create the categories table, then create another table where all businesses record information is placed along with a forieng key field, which links the records to the categories table? Would the second table ever be Normalized beyond Normal 1?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mrdenny</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/creating-tables-on-a-sql-server/#comment-59102</link>
		<dc:creator>mrdenny</dc:creator>
		<pubDate>Sun, 11 Jan 2009 10:49:42 +0000</pubDate>
		<guid isPermaLink="false">#comment-59102</guid>
		<description><![CDATA[I agree with Mario.  You should have one table for the business, and a second table for the categories.  The business table should have the id number of the category table in it.]]></description>
		<content:encoded><![CDATA[<p>I agree with Mario.  You should have one table for the business, and a second table for the categories.  The business table should have the id number of the category table in it.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/10 queries in 0.042 seconds using memcached
Object Caching 351/357 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-24 20:32:37 -->