<?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"
	>

<channel>
	<title>Oracle Tips &#187; Learn Sql</title>
	<atom:link href="http://www.expertsharing.com/category/learn-sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.expertsharing.com</link>
	<description></description>
	<pubDate>Thu, 25 Sep 2008 17:29:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
	<language>en</language>
			<item>
		<title>Normalization - An Overview</title>
		<link>http://www.expertsharing.com/2008/04/23/normalization-an-overview/</link>
		<comments>http://www.expertsharing.com/2008/04/23/normalization-an-overview/#comments</comments>
		<pubDate>Wed, 23 Apr 2008 18:33:18 +0000</pubDate>
		<dc:creator>Praveen</dc:creator>
		
		<category><![CDATA[Learn Sql]]></category>

		<category><![CDATA[denormalization]]></category>

		<category><![CDATA[first Normal Form]]></category>

		<category><![CDATA[Normal forms]]></category>

		<category><![CDATA[Normalization]]></category>

		<category><![CDATA[Normalization examples]]></category>

		<category><![CDATA[Second Normal form]]></category>

		<guid isPermaLink="false">http://www.expertsharing.com/2008/04/23/normalization-an-overview/</guid>
		<description><![CDATA[
Normalization is the process of removing redundant data from your tables in order to improve storage efficiency, data integrity and scalibility. This improvement is balanced against an increase in complexity and potential performance losses from the joining of the normalized tables at query-time.
The database community has developed a series of guidelines for ensuring that databases [...]]]></description>
			<content:encoded><![CDATA[<ul>
<li><strong><a href="http://www.expertsharing.com/wp-content/uploads/2008/04/pic-1.JPG" title="pic-1.JPG"></a><a href="http://www.expertsharing.com/wp-content/uploads/2008/04/pic-2.JPG" title="pic-2.JPG"></a><a href="http://www.expertsharing.com/wp-content/uploads/2008/04/pic-3.JPG" title="pic-3.JPG"></a><a href="http://www.expertsharing.com/wp-content/uploads/2008/04/pic-3.JPG" title="pic-3.JPG"></a><a href="http://www.expertsharing.com/wp-content/uploads/2008/04/pic-4.JPG" title="pic-4.JPG"></a>Normalization</strong> is the process of removing <strong>redundant data</strong> from your tables in order to improve storage efficiency, data integrity and scalibility. This improvement is balanced against an increase in complexity and potential performance losses from the joining of the normalized tables at query-time.</li>
<li>The database community has developed a series of guidelines for ensuring that databases are <strong>nomarlized</strong>. These are reffered to as normal forms and are numbered from one through five. In practical applications, you will often seen <strong>1NF, 2NF and 3NF</strong> along with the  ocassional 4NF. <strong>Fifth Normal form</strong> is very rarely seen.</li>
<li><strong>First normal form</strong> (1NF) sets the very basic rules for an organized database.</li>
</ul>
<blockquote><p>Eliminate duplicative columns from the same table.</p>
<p>Create Seperate tables for each group of related data and identify each row with a unique column or set of columns ( the primary key).<span id="more-76"></span></p></blockquote>
<ul>
<li><strong>Second Normal form</strong> (2NF) further addresses the concept of removing duplicate data</li>
</ul>
<blockquote><p>Meet all the requirements of the first normal form.</p>
<p>Remove subsets of data that apply to multiple rows of a table and place them in seperate tables.</p>
<p>Create relationships between these new tables and their predecessors through the use of foreign keys.</p></blockquote>
<ul>
<li> <strong>Third Nomal form </strong>(3NF) goes on large step further:</li>
</ul>
<blockquote><p>Meet all the requirements of the second normal form.</p>
<p>Remove columns that are not dependent upon the Primary key.</p></blockquote>
<p><img src="http://www.expertsharing.com/wp-content/uploads/2008/04/pic-1.JPG" alt="pic-1.JPG" /></p>
<p><a href="http://www.expertsharing.com/wp-content/uploads/2008/04/pic-2.JPG" title="pic-2.JPG"><img src="http://www.expertsharing.com/wp-content/uploads/2008/04/pic-2.JPG" alt="pic-2.JPG" /></a></p>
<ul>
<li>Eliminate duplicative columns (skill1, skill2, skill3) since all three columns belong to single logical name <strong>skills</strong>.</li>
<li>Create seperate table for each group of related data and identify each row with <strong>unique column</strong> or set of columns ( the Primary key).</li>
</ul>
<p><a href="http://www.expertsharing.com/wp-content/uploads/2008/04/pic-3.JPG" title="pic-3.JPG"><img src="http://www.expertsharing.com/wp-content/uploads/2008/04/pic-3.JPG" alt="pic-3.JPG" /></a></p>
<ul>
<li>Remove subsets of data that apply to multiple rows of a table and place them in  seperate tables.</li>
<li>Create relationships between these new tables and their predecessors through the use of <strong>foreign keys.</strong></li>
</ul>
<p><a href="http://www.expertsharing.com/wp-content/uploads/2008/04/pic-4.JPG" title="pic-4.JPG"><img src="http://www.expertsharing.com/wp-content/uploads/2008/04/pic-4.JPG" alt="pic-4.JPG" /></a></p>
<ul>
<li>Remove the columns that are not dependent upon the <strong>Primary key</strong>.</li>
</ul>
<p><strong><em>Note: For performance issues , always normalize to third normal form .</em></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.expertsharing.com/2008/04/23/normalization-an-overview/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Relational Databases and Sql - Learn Sql :Series 1</title>
		<link>http://www.expertsharing.com/2008/02/16/relational-databases-and-sql-learn-sql-series-1/</link>
		<comments>http://www.expertsharing.com/2008/02/16/relational-databases-and-sql-learn-sql-series-1/#comments</comments>
		<pubDate>Sat, 16 Feb 2008 06:03:47 +0000</pubDate>
		<dc:creator>Praveen</dc:creator>
		
		<category><![CDATA[Learn Sql]]></category>

		<category><![CDATA[foriegn Key]]></category>

		<category><![CDATA[Primary Key]]></category>

		<category><![CDATA[Relational Databases]]></category>

		<category><![CDATA[Table]]></category>

		<category><![CDATA[What is a database]]></category>

		<guid isPermaLink="false">http://www.expertsharing.com/2008/02/16/relational-databases-and-sql-learn-sql-series-1/</guid>
		<description><![CDATA[What is a database ?
A Database is a collection of Organized data belonging to some organization or  an Organizational process.Say if you are storing your friends contacts and organizing them in some fashion , then you are said to have an contacts database. As Long as you&#8217;re collecting and storing the data in an [...]]]></description>
			<content:encoded><![CDATA[<h3><em>What is a database ?</em></h3>
<p>A Database is a collection of Organized data belonging to some organization or  an Organizational process.Say if you are storing your friends contacts and organizing them in some fashion , then you are said to have an contacts database. As Long as you&#8217;re collecting and storing the data in an Organized form for a specific purpose , you have got a databse. Mainly we are going to discuss of  <em>Operational databases</em>.</p>
<p>Operational databases are the backbone of many companies and  Organizations throughout the world today. This type of database is primarily used to collect,store, modify and maintain data on a day-to-day basis. An example of Operational database could be retail stores, Manufacturing companies, Hospitals, clinics and Publishing houses.</p>
<p><span id="more-46"></span></p>
<h4><em>Brief history of how relational Database have evolved</em></h4>
<p>The relational database was first conceived in 1969 and has arguably become the most widely used database model in database management today. The father of the relational model, <strong><em>Dr. Edgar F. Codd</em></strong> (1923–2003),was an IBM research scientist in the late 1960s and was at that time looking into new ways to handle large amounts of data.</p>
<p>Dr. Codd formally presented his new relational model in a landmark work titled “A Relational Model of Data for Large Shared Databanks” in June 1970.1 He based his new model on two branches of mathematics—set theory and first-order predicate logic. Indeed, the name of the model itself is derived from the term relation,which is part of set theory</p>
<h4><em>Anatomy of Relational Database</em></h4>
<p>According to the relational model, data in a relational database is stored in relations, which are perceived by the user as tables. Each relation is composed of tuples (records) and attributes (fields).</p>
<h4>Tables</h4>
<p>Tables are at the heart of any database. Each table should always describe about an single entity or an event qualifying an entity.Every table contains at least one field—known as a primary key—that uniquely identifies each of its records.</p>
<p><a href="http://www.expertsharing.com/wp-content/uploads/2008/02/table.JPG" title="table.JPG"><img src="http://www.expertsharing.com/wp-content/uploads/2008/02/table.JPG" alt="table.JPG" /></a></p>
<h4>Fields</h4>
<p>A field is the smallest structure in the database, and it represents a characteristic of the entity of the table to which it belongs. Fields are the structures actually used to store data. The data in these fields can then be retrieved and presented as information in the most required form. Every field in a properly designed database contains one and only one value, and the field name identifies the type of value it stores.</p>
<h4>Records</h4>
<p>A record represents a unique instance of the entity or an event of a table. A Record is composed of the entire set of fields in a table, regardless of whether or not the fields contain any values. Because of the manner in which a table is defined, each record is identified throughout the database by a unique value in the primary key field of that record.</p>
<h5>Keys</h5>
<p>Keys are special fields that play very specific roles within a table. The type of key determines its purpose within the table. Although a table might contain several types of keys,we will limit our discussion to the two most important ones: the primary key and the foreign key.</p>
<p>A <strong><em>primary key</em> </strong>is a field or group of fields that uniquely identifies each record within a table. (When a primary key is composed of two or more fields, it is known as a composite primary key.) The primary key is the most important for two reasons: Its value identifies a specific record throughout the entire database, and its field identifies a given table throughout the entire database. Primary keys also enforce table-level integrity and help establish relationships with other tables. Every table in your database should have a primary key.</p>
<p><em><strong>Foreign keys</strong></em> are important not only for the obvious reason that they help establish relationships between pairs of tables but also because they help ensure relationship-level integrity. This means that the records in both tables will always be properly related because the values of a foreign key must be drawn from the values of the primary key to which it refers.</p>
<p><a href="http://www.expertsharing.com/wp-content/uploads/2008/02/primary-key-foriegn-key.GIF" title="primary-key-foriegn-key.GIF"><img src="http://www.expertsharing.com/wp-content/uploads/2008/02/primary-key-foriegn-key.GIF" alt="primary-key-foriegn-key.GIF" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.expertsharing.com/2008/02/16/relational-databases-and-sql-learn-sql-series-1/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
