1 Answer - Sort by: Date | Rating
Insertion anomaly indicates that we cannot insert a fact about one entity until we have an additional fact about another entity. Suppose we want to store the information that the cost of car is Rs. 14,00,000, but we cannot enter this data into the relation until the data about the car is entered into the relation.
This restriction seems undesirable. Why should we have to wait until someone buys the car (although its price is known). We can record its price. This restriction is called an insertion anomaly. This problem can be solved by dividing the relation into two relations, each one is used to store different facts.
For example, to insert a new staff tuple (record) into the 'Staff-Branch' relation, we must include the details of the branch at which the staff is to be located. Suppose you enter the details of new staff located at branch number 3891, you must enter the correct details of this branch number.
It is difficult to insert details of a new branch that has no members of staff into the 'Staff-Branch' relation. The only way to do this is to place null values in the attributes for staff, such as Staff-No. It creates integrity problem because Staff-No is the primary key of Staff-Branch relation. Therefore, you cannot enter a row for a new branch into the Staff-Branch relation with a null value for Staff-No attribute. When Staff-Branch relation is divided into Staff and Branch relation, the above-mentioned problem will not occur. It is because, the branch details can be entered in the Branch relation. The details of staff located at that branch can be entered later into the Staff relation.
This restriction seems undesirable. Why should we have to wait until someone buys the car (although its price is known). We can record its price. This restriction is called an insertion anomaly. This problem can be solved by dividing the relation into two relations, each one is used to store different facts.
For example, to insert a new staff tuple (record) into the 'Staff-Branch' relation, we must include the details of the branch at which the staff is to be located. Suppose you enter the details of new staff located at branch number 3891, you must enter the correct details of this branch number.
It is difficult to insert details of a new branch that has no members of staff into the 'Staff-Branch' relation. The only way to do this is to place null values in the attributes for staff, such as Staff-No. It creates integrity problem because Staff-No is the primary key of Staff-Branch relation. Therefore, you cannot enter a row for a new branch into the Staff-Branch relation with a null value for Staff-No attribute. When Staff-Branch relation is divided into Staff and Branch relation, the above-mentioned problem will not occur. It is because, the branch details can be entered in the Branch relation. The details of staff located at that branch can be entered later into the Staff relation.
1
0
- What Does The Word Enlarge Mean?
- What Are Royalty Websites?
- Does Violent Video Games Affect The Way You Think?
- How To Restore Factory Settings For Windows Xp?
- What Dialog Box Inserts A Vertical Line Between Columns?
- Bakugan Vs Pokemon Who Would Win?
- Which HTML Tag Is Used To Define An Internal (embedded) Style Sheet?
- How Many Sub Nets Does The Chosen Subnet Mask Produce?
- Can You Give Me A List Of The Places That Have Gym Leaders In Order From 1 To 8?
- Is There Is A Sleep Mode For Most Pc's?
- What Are The Accessing Mathods?
- How Do I Login To My Work Email From My Home Pc?
- Is There Secret Codes For Baking On Pixie Hollow?
- What Is The Purpose To Have Networking?
- How To Get Torterra?
- What Is A 10 Gem Code For Our World?
- What Is A 20 Gem Code?
- Tell Me Exactly What An IP Address Is?
- An Audacity File Cannot Be Imported Into Vegas Or Movie Maker. What Task Must You Perform To Accomplish This?
- What Is Rp Power?
- What Are The Advantages And Disadvantages Of Using Computers For Along Time?
- How Does Combustion Works In Cars Print In Brochure Form?
- How To Get A Chazay In Pokemon Platinum?
- When Printing My Incoming Emails The Letters Are To Small, How Do I Make Them Larger?
- When I Print Out My Emails, The Lettering Is Too Small How Do I Adjust?

New Comment - Comments are editable for 5 min.