The Relational Model
The Relational Model
-It's strength is the ease with which tables may be linked to one another
-each row in table must be unique in at least one attribute, which is the primary key
-tables must conform to the rules of normalization (i.e., free from structural dependencies or anomalies)
1) Identify entities
view modeling begins by identifying the primary entities of the business function in question
2) Construct a data model showing entity associations (Cardinality)
to determine the associations between entities and document them with an ER diagram
3) Add primary keys and attributes to the model
Add primary keys: analyst should select a primary key that logically defines the nonkey attributes and uniquely
identifies each occurrence in the entity
Add attributes: every attribute in an entity should appear directly or indirectly (a calculated value) in one or
more user views
3 Types of Anomalies
1) Insertion anomaly
a new item cannot be added to the table until at least one entity uses a particular attribute item
accountants and data normalization- can result in unrecorded transactions and incomplete audit trails
2) Deletion anomaly
if an attribute item used by only one entity is deleted, all information about that attribute item is lost
-involves the unintentional deletion of data from a table
accountants and data normalization- can cause the loss of accounting records and the destruction of audit
trails
3) Update anomaly
a modification on an attribute must be made in each of the rows in which the attribute appears
-results from data redundancy in an unnormalized table
accountants and data normalization- can generate conflicting and obsolete database values