Professional Documents
Culture Documents
Database Design and Concepts
Database Design and Concepts
Module 4.1
Databases are commonly used
Select it
select only some data to work with
select only that which is relevant to what the entity is
about
Structure it
decide which tables we need
what relationships must exist between tables
Normalisation
Normalise to ensure
Each field contains a single value
Data is not repeated as fields of the same record. E.g.
Errors:
Insert anomaly
Prevents user from capturing data as needed
If publisher data is to be added at least one product will be
added
Delete anomaly
Deleting one piece will result in simutaneously deleting
unrelated data
If one item of stock is removed it will remove the details of
the publisher
Update anomaly
If data changes it has to be changed in more than one record
If a telephone number of a publisher changes it will have to
be changed across more than one record
Basic database design:
Structuring data (5)
Solutions to problems:
Separate data from publishers and products to two
tables (two separate entities)
Determine the relationship
Link using a foreign key
Basic database design:
Result of redesign
Increases efficiency
Minimises wasted storage and memory
Eliminates errors
Eliminates inconsistencies in data
Makes data maintenance easier
Do not have to search for repeated entries
Do not have to enter the same data more than once
Deleting one record will not corrupt the whole database
Concepts that improve design
Data integrity
Maintain accuracy and consistency – achieved by
normalisation
Physical integrity
Overcome practical issues such as power failure, natural
disasters etc.
Using technologies such as UPS and RAID
Logical integrity
Correctness of data
Data making sense in a particular context
Concepts that improve design
Data integrity