Database Management 1 Week1 Lecturer: Ms Pearl Teng/Mr Seetoh
Database Management 1 Week1 Lecturer: Ms Pearl Teng/Mr Seetoh
Database Management 1 Week1 Lecturer: Ms Pearl Teng/Mr Seetoh
BBT1002
Database Management 1
Week1
Learning Objectives
– Data redundancy:
• Presence of duplicate data in multiple files
– Data inconsistency:
• Same attribute has different values
– Program-data dependence:
• When changes in program requires changes to data
accessed by program
– Lack of flexibility
– Poor security
– Lack of data sharing and availability
FIGURE 6-4
• Normalization
– Streamlining complex groupings of data to minimize redundant data
elements and awkward many-to-many relationships
3502 1/15 152 Lock 31.0 20 8259 CBM 74 Ave Dayton OH 45220
3502 1/15 178 Handle 10.0 5 8259 CBM 74 Ave Dayton OH 45220
FIGURE 6-9 An unnormalized relation contains repeating groups. For example, there can be many parts and suppliers for
each order. There is only a one-to-one correspondence between Order_Number and Order_Date.
FIGURE 6-10 After normalization, the original relation ORDER has been broken down into four smaller relations. The
relation ORDER is left with only two attributes and the relation LINE_ITEM has a combined, or concatenated,
key consisting of Order_Number and Part_Number.
Figure 5-5
The final design of the
database for suppliers,
parts, and orders has
four tables. The
LINE_ITEM table is a
join table that
eliminates the many-
to-many relationship
between ORDER and
PART.
Figure 5-4
The shaded areas
show which data
came from the
SUPPLIER,
LINE_ITEM, and
ORDER tables. The
database does not
maintain data on
Extended Price or
Order Total because
they can be derived
from other data in the
tables.
AN ENTITY-RELATIONSHIP DIAGRAM
FIGURE 6-11 This diagram shows the relationships between the entities SUPPLIER, PART, LINE_ITEM, and ORDER that
might be used to model the database in Figure 6-10.
THE Chapter
THREE 6: Foundations of Business Intelligence
BASIC OPERATIONS OF A
RELATIONAL DBMS
FIGURE 6-5 The select, join, and project operations enable data from two different tables to be combined and only selected
attributes to be displayed.
References
Chapter 6: Foundations of Business Intelligence