Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Database Systems
for MSc (CS)
Lecture 3:
Database Development and Data Modeling
Hareem Aslam
Hareem.aslam@pucit.edu.pk
Image sources:
http://www.redorbit.com/education/reference_library/space_1/universe/2574692/geocentric_model/
http://hendrianusthe.wordpress.com/2012/06/21/heliocentric-vs-geocentric/
What is data model?
A set of concepts to describe the structure of a database,
the operations for manipulating these structures, and
certain constraints that the database should obey.
Structure:
Typically include elements (and their data types) as well as groups of elements
(e.g. entity, record, table), and relationships among such groups
Constraints:
Constraints specify some restrictions on valid data; these constraints must be enforced at
all times
What is data model?
Operations:
These operations are used for specifying database retrievals and
updates by referring to the structure of the data model.
basic model operations (e.g. generic insert, delete, update)
user-defined operations (e.g. compute_student_gpa,
update_inventory)
Importance of data model
Communication tool
Object oriented ?
Hierarchical
Relational
Client Oriented
Network
History of Database Model
Hierarchical database model (HDBM)
Network database model (NDBM)
Relational database model (RDBM)
Object-oriented database model (ODBM)
Hierarchical database model (HDBM)
Hierarchical Database Model
(HDBM)
Logically represented by an upside down tree
Each parent can have many children (segment linkage)
Final assembly->Component A-
>Assembly A-> Part A ->Part B ->
Component B -> Component C –
Assembly B -> Part C ->Part D
Re-list sequence, if the segment is frequently accessed
Bank systems commonly use HD model
Hierarchical Database
Model
Bank systems commonly use the HDBM
customer account can be subject to many transactions
(1:M relationship)
Relationship is fixed (debiting and crediting)
Physical Design
Implementation
Maintenance
Database SDLC
SDLC Database Development
Activities
Identify Project
Enterprise
Initiate and Plan Modeling
Conceptual
Analyze Data Modeling
Logical
Logical Design DB Design
Physical DB
Physical Design Design/Creation
DB
Implementation Implementation
DB
Maintenance Maintenance
Enterprise Data Modeling
The first step in
database
development, in
which the scope and
general contents of
organizational
databases are
specified.
Enterprise Data Model
A model which includes:
overall range of organizational databases
general contents of organizational databases
Conceptual Database Modeling
Determine user requirements
Determine business rules Enterprise
A business rule is a brief, precise, and Modeling
Conceptual
unambiguous description of a policy, Data Modeling
procedure, or principle within a specific Logical
DB Design
organization. Physical DB
Design/Creation
Build conceptual data model DB
Implementation
outcome is an entity-relationship diagram
DB
population of repository Maintenance
Logical Database Design
manageable size
Textbook
Carlos Coronel, Steve Morris, “Database Systems” Design, Implementation,
Management, 12th Ed. Course Technology, 2016”.
Reference book
Jeffrey Hoffer, “Modern Database Management ” Design, Implementation, Management,
10th Edition”
Thomas Connolly, “Database Systems: A Practical Approach to Design, Implementation
and Management (6th Ed.)”
Elmasri, “Fundamentals of Database Systems: (7th Ed.)”