Use the table below which shows data about daily departing f
Solution
Anomaly\'s are occurred because of unnormalised tables i.e. If we maintain the database as unnormalised we will face the anomalys. Generally of three types. They are
1. Insertion anomaly:- This occurs when we insert the attributes into the database but it is not possible without the presence of other attributes in the database. we must insert those attributes also along with the one\'s we want to add then it will allow to insert in the database .
For example consider AIRPORT table, for an instance we have a new terminal in the airport, now we are trying to insert the new terminal data in the AIRPORT table but it will not allow us to update untill unless we must assign atleast one airline to that terminal. This is called insertion anomaly.
2. Deletion Anomaly:- This anomaly occurs when certain attributes are lost by deleting other attributes in the table.I.e. Deletion of some tuples leads the deletion of some other information which is not intended to delete.
For example take AIRPORT table, for instance one terminal in the airport is got damaged, now we want to delete this from database untill it is renovated. In this case whenever we delete the terminal from the database the airlines information is also get deleted which are assigned to that terminal.
3. Modification Anomaly:- Whenever we modify the data in the table that will not be updated in all the instances. i.e. modification anomaly exists when one or more instances of updated data is changed but not in all the instances.
For example take airport table, for instance we have updated one terminal id by replacing the previous id but this change of terminal id will not be updated in all the airlines which are assigned to that terminal.This leads to the inconsistency of data.
