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!
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.
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.
Provide at least five distinct examples of diagnostic tests that involve physiological signal processing. 2. What...
Provide at least five distinct examples of diagnostic tests that involve physiological signal processing. 2. What patient data are typically collected and viewed (accessed) by care providers using point-of-care systems? 3. Describe how second-and third-generation telehealth applications differ in functionality from first-generation applications such as teleradiology. 4. What is drive the increased use of computerized care protocols in healthcare? 5. What is the key difference between the definition of EHR and EMR? 6. What is cryptography and why is it...
Insert at least three rows of data to each table. Make sure you keep the primary...
Insert at least three rows of data to each table. Make sure you keep the primary key and foreign key constraints. Tables: Cust Table: cid, -- customer id cname, --- customer name cphone, --- customer phone cemail, --- customer email Category table: ctid, --- category id ctname, --- category name parent, --- parent category id since category has a hierarchy structure, power washers, electric power washers, gas power washers. You can assume that there are only two levels. Tool: tid,...
- Provide at least 2 examples for each of the Internal Control components.
- Provide at least 2 examples for each of the Internal Control components.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT