<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6172903977880406491</id><updated>2024-09-16T10:43:17.017-07:00</updated><title type='text'>Normalization of Database Design</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://normalizationofdatabasedesign.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6172903977880406491/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://normalizationofdatabasedesign.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Ravindra Bhatoa.</name><uri>http://www.blogger.com/profile/12991852396789610925</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg34q-ix9_AaNA_3truqOjSAgvkMY0qwzMNx5hHL5ENshPJmwWBpwdoikt5IMnL4CvAxGIX8B3wZ8H0Xb8fPX31qDwZ6L9DnEwjfOIYaJiZAKnupMIjDdQv2kWz3ZON8Kk/s220/Image000.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6172903977880406491.post-2974761295987712535</id><published>2012-02-07T20:02:00.000-08:00</published><updated>2012-02-13T19:59:11.338-08:00</updated><title type='text'>What is 1NF 2NF and 3NF in RDBMS</title><content type='html'>Hi All,&lt;br /&gt;Welcome to the Bhatoa&#39;s world of Oracle.&lt;br /&gt;This article will give you walk through pertaining to database design concepts of Normalizations.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; color: rgb(51, 51, 255);&quot;&gt;What is 1NF?&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; color: rgb(51, 51, 255);&quot;&gt;First normal form:&lt;/span&gt;&lt;br /&gt;If you have a table then simply it should not have repeated columns having the same data and it should have primary key.&lt;br /&gt;&lt;br /&gt;For Instance:&lt;br /&gt;Table Name=Home&lt;br /&gt;Column Names=Home_primary_key,Table,Chair1,chair2,chair3,chair4,door,window.&lt;br /&gt;&lt;br /&gt;If you observe column names ..chair1,chair2,chair3,chair4 are repeated columns&lt;br /&gt;To bring this table to 1NF form we have to have one primary key which is present and should not have repeated columns.&lt;br /&gt;So now our column names would be after applying 1NF.&lt;br /&gt;Home_primary_key,Table,Chairs,Door,Window.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; color: rgb(51, 102, 255);&quot;&gt;What is 2NF or What is second Normal form?&lt;/span&gt;&lt;br /&gt;Now we will discuss normalization with 2nd Normal Form.&lt;br /&gt;&lt;br /&gt;2nd NF comprises of following conditions:&lt;br /&gt;1)It should satisfy conditions of 1NF(Which is mentioned above).&lt;br /&gt;2)All the repeating subset of data in the table should be seperated into other table with Primary Key and Foreign Key relationship between the existing table and the new table.&lt;br /&gt;Basically reducing the redundancy and also adding foreign key.&lt;br /&gt;&lt;br /&gt;For instance:&lt;br /&gt;&lt;br /&gt;Table Name=Home&lt;br /&gt;Column Names=Home_primary_key,Table,Chairs,door,window,zip_code,city,state.&lt;br /&gt;&lt;br /&gt;Here zip_code,city,state are the columns which are getting repeated un-necessarily&lt;br /&gt;thus increassing the size of disk and thus we can create a new table with these 3 columns and one&lt;br /&gt;foreign key column.&lt;br /&gt;Which will make this table  2nf.&lt;br /&gt;&lt;br /&gt;What is 3NF?&lt;br /&gt;Third Normal Form is very easy to understand if you have understood what is first normal form and what is second normal form.&lt;br /&gt;Apart from satisfying 1nf and 2nf . We have to remove the columns that do not depend on Primary Key of the table.&lt;br /&gt;&lt;br /&gt;For Instance:&lt;br /&gt;If we have a table named &quot;Invoice&quot;&lt;br /&gt;and suppose its columns are:&lt;br /&gt;Item_id&lt;br /&gt;item_name&lt;br /&gt;item_cost&lt;br /&gt;item_quantity&lt;br /&gt;discount&lt;br /&gt;Total&lt;br /&gt;&lt;br /&gt;Now if we start to analyze the table:&lt;br /&gt;It is having primary key as item_id&lt;br /&gt;It does not have repetition of columns&lt;br /&gt;It does not have subset of data in the table.&lt;br /&gt;But it has one column Total which is not dependent on primary key.&lt;br /&gt;So it can be removed from the table design and can be calculated in the queries itself whereever required.&lt;br /&gt;New table design would be:&lt;br /&gt;Invoice=table name&lt;br /&gt;column names:&lt;br /&gt;Item_id&lt;br /&gt;item_name&lt;br /&gt;item_cost&lt;br /&gt;item_quantity&lt;br /&gt;discount&lt;br /&gt;I hope this artical is little bit helpful to clear your concepts on normalizations.</content><link rel='replies' type='application/atom+xml' href='http://normalizationofdatabasedesign.blogspot.com/feeds/2974761295987712535/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://normalizationofdatabasedesign.blogspot.com/2012/02/what-is-1nf-2nf-and-3nf-in-rdbms.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6172903977880406491/posts/default/2974761295987712535'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6172903977880406491/posts/default/2974761295987712535'/><link rel='alternate' type='text/html' href='http://normalizationofdatabasedesign.blogspot.com/2012/02/what-is-1nf-2nf-and-3nf-in-rdbms.html' title='What is 1NF 2NF and 3NF in RDBMS'/><author><name>Ravindra Bhatoa.</name><uri>http://www.blogger.com/profile/12991852396789610925</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg34q-ix9_AaNA_3truqOjSAgvkMY0qwzMNx5hHL5ENshPJmwWBpwdoikt5IMnL4CvAxGIX8B3wZ8H0Xb8fPX31qDwZ6L9DnEwjfOIYaJiZAKnupMIjDdQv2kWz3ZON8Kk/s220/Image000.jpg'/></author><thr:total>3</thr:total></entry></feed>