<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Scattered Thoughts &#187; basic</title>
	<atom:link href="http://tribalost.net/archives/tag/basic/feed" rel="self" type="application/rss+xml" />
	<link>http://tribalost.net</link>
	<description>of a broken dream...</description>
	<lastBuildDate>Sat, 24 Apr 2010 16:42:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Chapter 4.1 : Basic Concepts</title>
		<link>http://tribalost.net/archives/14.html</link>
		<comments>http://tribalost.net/archives/14.html#comments</comments>
		<pubDate>Tue, 01 Apr 2008 17:59:53 +0000</pubDate>
		<dc:creator>Nile</dc:creator>
				<category><![CDATA[DB212]]></category>
		<category><![CDATA[basic]]></category>
		<category><![CDATA[chapter]]></category>
		<category><![CDATA[concepts]]></category>
		<category><![CDATA[four]]></category>

		<guid isPermaLink="false">http://tribalost.net/archives/14</guid>
		<description><![CDATA[Normalization is a process for converting complex data structures into simple, stable data structures.Why normalisation is necessary ? The database design must be efficient (performance-wise). The amount of data should be reduced if possible. The design should be free of update, insertion and deletion anomalies. The design must comply with rules regarding relational databases. The [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://en.wikipedia.org/wiki/Database_normalization" title="Normalization" target="_blank">Normalization</a> is a process for converting complex data structures into simple, stable data structures.Why normalisation is necessary ?</p>
<ul>
<li>The database design must be efficient (performance-wise).</li>
<li>The amount of data should be reduced if possible.</li>
<li>The design should be free of update, insertion and deletion anomalies.</li>
<li>The design must comply with rules regarding relational databases.</li>
<li>The design has to show pertinent relationship between entities.</li>
<li>The design should permit simple retrieval, simplify data maintenance and reduce the need to restructure data.</li>
</ul>
<p><a href="http://tribalost.net/wp-content/gallery/db212/figure1.png" target="_blank"></a></p>
<p style="text-align: center"><a href="http://tribalost.net/wp-content/gallery/db212/figure1.png" target="_blank"><img src="http://tribalost.net/wp-content/gallery/db212/thumbs/thumbs_figure1.png" alt="Figure 1" height="99" width="99" /></a></p>
<p>Figure 1 on the left show the steps in normalization.</p>
<p>4.1.1      Functional Dependency<br />
Normalisation is based on the analysis of functional dependence. A functional dependency is a particular relationship between two attributes. For any relation R, that attribute B is functionally dependent on attribute A if, for every valid instance of A, that value of A uniquely determines then value of B. This is usually represented by an arrow, as follows:<br />
A &#8211;&gt; B<br />
An attribute may be functionally dependent on two (or more) attributes, rather than on a single attribute. For example, in the following relation:<br />
ORDER (ORDER-NO, PART-NO, NO-ORDERED, PART-DESC, QUOTED-PRICE)<br />
ORDER-NO, PART-NO &#8211;&gt; NO-ORDERED, PART-DESC, QUOTE-PRICE</p>
<p>In this case, the attribute on the left-hand side of the arrow is called a determinant.<br />
For examples:<br />
CUST-NO &#8211; - &gt; CUST-NAME, ADDRESS, COMPANY<br />
INVOICE-NO &#8211; - &gt; INVOICE-DATE, CUST-NO, ORDER-NO<br />
CUST-NO and INVOICE-NO examples of determinants.</p>
<p>4.1.2      Keys<br />
An attitude (or field), K, is the primary key of a table if:</p>
<ul>
<li>All columns (all the fields in the table) are functionally dependent on K.</li>
<li>Each value is unique.</li>
<li>If K is a composite/concatenate key then it must comply with the following conditions:
<ul>
<li>No portion of the key should be a primary key.</li>
<li>All attributes that make up the key are not null.</li>
</ul>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://tribalost.net/archives/14.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
