IT1090 - Lecture 04
IT1090 - Lecture 04
Introduction to Database
Modelling
Lecture - 04
1
SLIIT - Faculty of Computing
IT1090 - Information Systems and Data Modeling
Introduction to Database
To better understand what drives the design of databases,
first need to understand the difference between data and
information.
What is Data?
What is Information?
What is Database (DB)?
What is Database Management System (DBMS)?
Cont.
SLIIT - Faculty of Computing
IT1090 - Information Systems and Data Modeling
Cont.
Sales Order
Accounts Payable Processing Payroll
Program Program Program
Inventory Employee
Vendor Invoice Customer
file file
file file file
Database Approach
Limitations of Conventional File-based Approach:
Database Approach
Arose because:
Definition of data was embedded in application
programs, rather than being stored separately and
independently
No control over access and manipulation of data
beyond that imposed by application programs
Result:
The Database and Database Management System
(DBMS).
Cont.
SLIIT - Faculty of Computing
IT1090 - Information Systems and Data Modeling
Database Approach
Order Dept. Accounting Payroll
Dept. Dept.
A B C
Database Approach
Cont.
SLIIT - Faculty of Computing
IT1090 - Information Systems and Data Modeling
Cont.
History in a Nutshell
First DBMS: Bachman at General Electric, early 60’s
(Network Data Model). Standardized by CODASYL.
Late 60’s : IBM’s IMS (Inf. Mgmt.Sys.) (Hierarchical Data
Model).
1970: Edgar Codd (at IBM) proposed the Relational Data
Model. Strong theoretical basis.
1980’s -90’s: Relational model consolidated. Research on
query languages and data models => logic-based
languages, OO DBMSs => Object-relational data model
(extend DBMSs with new data types)
Directed Reading Section 1.4, 1.5 and 1.6 in Elmasri and Navathe.
SLIIT - Faculty of Computing
IT1090 - Information Systems and Data Modeling
Cont.
Data Independence
Data Independence is the capacity to change the
schema at one level of a database system without
having to change the schema at the next higher
level.
Data Independence
Database Design
Why is Database Design important?
1. Requirements Analysis
What does the user want?
4. Schema Refinement
Fine tune the result
6. Security Design
Implement Controls to ensure security and integrity
Data Modeling
What is a Data Model?
• A data model focuses on what data should be stored in
the DB and how it should be organized
• Without representing the data as a database would see
it, a data model represents the data as the user sees it in
the ‘real world’
• A data model can be considered similar to an architect's
building plan
The goal of the data model is to make sure that all data objects
required by the database are completely and accurately represented
Hierarchical Model
Network Model
Relational Model
6.Security Design
Implement Controls to ensure security and integrity
E.g. ER Model
Eg. Bank
Customer – read access
Teller – read/update (limited)
Manager – read/update
End of Lecture - 04
Questions ?
37
SLIIT - Faculty of Computing