Course Hero Logo

Prof tirup parmar video lectures

Course Hero uses AI to attempt to automatically extract content from documents to surface to you and others so you can study better, e.g., in search results, to enrich docs, and more. This preview shows page 80 - 84 out of 96 pages.

Prof. Tirup ParmarVideo lectures - Page 80Why do you need a foreign key?Suppose an idiot inserts a record in Table B such asYou will only be able to insert values into your foreign key that exist in the unique key in the parent table.This helps in referential integrity.
Prof. Tirup ParmarVideo lectures - Page 81The above problem can be overcome by declaring membership id from Table2 as foreign key ofmembership id from Table1Now, if somebody tries to insert a value in the membership id field that does not exist in the parent table,an error will be shown!What are transitive functional dependencies?A transitive functional dependency is when changing a non-key column, might cause any of the othernon-key columns to changeConsider the table 1. Changing the non-key column Full Name may change Salutation.Let's move into 3NF
Prof. Tirup ParmarVideo lectures - Page 823NF (Third Normal Form) RulesRule 1- Be in 2NFRule 2- Has no transitive functional dependenciesTo move our 2NF table into 3NF, we again need to again divide our table.3NF ExampleTABLE 1Table 2Table 3We have again divided our tables and created a new table which stores Salutations.There are no transitive functional dependencies, and hence our table is in 3NFIn Table 3 Salutation ID is primary key, and in Table 1 Salutation ID is foreign to primary key inTable 3Now our little example is at a level that cannot further be decomposed to attain higher forms ofnormalization. In fact, it is already in higher normalization forms. Separate efforts for moving
Prof. Tirup ParmarVideo lectures - Page 83into next levels of normalizing data are normally needed in complex databases. However, wewill be discussing next levels of normalizations in brief in the following.Boyce-Codd Normal Form (BCNF)Even when a database is in 3rdNormal Form, still there would be anomalies resulted if it hasmore than oneCandidateKey.Sometimes is BCNF is also referred as3.5 Normal Form.4NF (Fourth Normal Form) RulesIf no database table instance contains two or more, independent and multivalued data describingthe relevant entity, then it is in 4thNormal Form.5NF (Fifth Normal Form) RulesA table is in 5thNormal Form only if it is in 4NF and it cannot be decomposed into any numberof smaller tables without loss of data.6NF (Sixth Normal Form) Proposed6thNormal Form is not standardized, yet however, it is being discussed by database experts forsome time. Hopefully, we would have a clear & standardized definition for 6thNormal Form inthe near future...That's all to Normalization!!!SummaryDatabase designing is critical to the successful implementation of a database managementsystem that meets the data requirements of an enterprise system.

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 96 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
N/A
Tags
Relational model, Prof Tirup Parmar

Newly uploaded documents

Show More

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture