Professional Documents
Culture Documents
a. primary
b. foreign
c. composite
d. candidate
2. Which of the following is not a table operation?
a. viewing
b. adding
c. deleting
d. searching
3. What are the errors or inconsistencies that are caused by redundancies?
a. anomalies
b. redundancies
c. mistakes
d. normalize
4. Which of the following is a process of efficiently organizing data in a database?
a. synchronization
b. normalization
c. relation
d. organization
5. Which of the following form removes the subsets of data that apply to multiple rows of a
table and place them in separate tables.?
a. 1NF
b. 2NF
c. 3NF
c. 4NF
6. What anomaly is created when one record is updated when the other same data is not
updated thus creating inconsistencies?
a. deletion
b. addition
c. creation
d. modification
Logical Database Design
Logical Database Design
• hierarchical
• network
• relational
• object-oriented
Overview of Logical Design
Model entities
• each entity type in an ERD is represented as a relation
Model associations
• each relationship in the ERD must be represented in the
relational model
Normalize the relations
• relations must be refined to avoid unnecessary redundancies and
anomalies
Merge the relations
• redundant relations must be merged
Components of Relational Database Model
• Data structure
- data are organized in the form of tables
• Data manipulation
- powerful data manipulation operations are used (SQL)
• Data integrity
- business rules are included to maintain data integrity
Logical Data Model
• addition of records
• deletion of records
• editing of table attribute(s)
• viewing of records
Establishing Keys
2
3 Anomalies
1. Insertion
-This anomaly is created when the user is able to enter employee
data without supplying other needed or referred data.
2. Deletion
-This anomaly is created when one reference of a data is removed
without relating to other tables that also contains the same data.
3. Modification
-This anomaly is created when one records is updated when the
other same data is not updated thus creating inconsistencies
Normalization
Two goals:
1.eliminate redundant data
2.ensure data dependencies make sense
• 1NF
• 2NF
• 3NF
• Boyce/Codd (BCNF)
• 4NF
• 5NF
2
First normal form (1NF)- The process of separating
the repeating from the non-repeating attributes
identified by a primary key.
1NF sets the very basic rules for an organized
database:
• Eliminate duplicative columns from the same table.
• Create separate tables for each group of related data and
identify each row with a unique column or set of columns
(the primary key).
Second Normal Form (2NF)