Question

In: Computer Science

Provide five specific examples of data anomalies (including at least one insert, update, and delete anomaly...

Provide five specific examples of data anomalies (including at least one insert, update, and delete anomaly each) that might happen if your database were not in at least third normal form. Provide sample non-normalized data and tables, the action taken, and the resulting anomalous data. Explain why your design avoids each possible problem.

Solutions

Expert Solution

Consider the table Given Below

emp_id emp_name emp_zip emp_state emp_city emp_district
1001 John 282005 UP Agra Dayal Bagh
1002 Ajeet 222008 TN Chennai M-City
1006 Lora 282007 TN Chennai Urrapakkam
1101 Lilly 222008 TN Chennai M-City

Here the table is not in 3normal form and so the anamlies are

  1. Insert anamaloy - Suppose a new employee needs to be added but whose address is not yet known in such acse teh data won't be added
  2. Insert anamoly - Suppose a new eployee joins and we know the zip code but not the state then again data won't be added
  3. update anamoly - suppose we want to update the state of a zip code , above 222008 zip code has Chennai as state , now if we want to update Chennai to somethign else we will have to do it for eveyr row ehere the zip code id 222008.
  4. update anamoly - suppsoe we want to update city of a zip code again we will have to update each and every row where the ip code is waht we want to update
  5. delete anamoly - Suppose we want to remove the zip code 222008 then it will remove all the employee also belongiing to that zip code

The above table is not in 3Normal form because the  emp_state, emp_city & emp_district dependent on emp_zip. And, emp_zip is dependent on emp_id and so to normlaize it we can make two sepaaret tables , on will store the zip code , city and state and other will map employeees to it.

So the normalized table will be

Table 1

emp_id emp_name emp_zip
1001 John 282005
1002 Ajeet 222008
1006 Lora 282007

Table 2

emp_zip emp_state emp_city emp_district
282005 UP Agra Dayal Bagh
222008 TN Chennai M-City

Related Solutions

Please describe in detail two examples of mimicry in plants (specific or groups) including at least...
Please describe in detail two examples of mimicry in plants (specific or groups) including at least one example of Batestian mimicry. Thank you!
find and provide three examples of data visualizations which mislead a viewer (at least one should...
find and provide three examples of data visualizations which mislead a viewer (at least one should be in the business context). include the screenshots/pictures of those visualizations. Explain why they mislead.
Create three MySQL database tables and write SQL scripts to read, insert, and delete data. The...
Create three MySQL database tables and write SQL scripts to read, insert, and delete data. The first database table will contain the names of at least four movies. The second table will be a list of actors who appear in the movies. The third table will be an associative table that describes the relationship between the actors and their movies (which actors appear in which movies). Actors and movies have a “many-to-many relationship,” meaning an actor can be in multiple...
Create three MySQL database tables and write SQL scripts to read, insert, and delete data. The...
Create three MySQL database tables and write SQL scripts to read, insert, and delete data. The first database table will contain the names of at least four movies. The second table will be a list of actors who appear in the movies. The third table will be an associative table that describes the relationship between the actors and their movies (which actors appear in which movies). Actors and movies have a “many-to-many relationship,” meaning an actor can be in multiple...
Describe with specific examples how at least five management principles, methods, theories, or tools studied in...
Describe with specific examples how at least five management principles, methods, theories, or tools studied in other chapters could be used in Kotter’s eight-step approach for large-scale organizational change.
provide five examples of compensation
provide five examples of compensation
Describe one type of cognitive bias (one or two sentences). Provide at least one specific example...
Describe one type of cognitive bias (one or two sentences). Provide at least one specific example of how this type of bias could lead to suboptimal accounting decision making.
List at least three specific professional objectives for yourself at the one-, three-, and five-year marks...
List at least three specific professional objectives for yourself at the one-, three-, and five-year marks after you graduate from college, which are key points in your career. Include your targeted industry, graduate school program (if applicable), level of employment (manager, director, etc.), and expected salary and benefits at each year. Then make specific contingency plans for each time period if you have not reached the objectives listed. Finally, write a one-paragraph description of how potential developments in your personal...
Is globalization beneficial to everyone? Provide specific examples.
Is globalization beneficial to everyone? Provide specific examples.
Discuss one specific subdivision of the nervous system and provide examples of its general locations.
Discuss one specific subdivision of the nervous system and provide examples of its general locations.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT