Chapter1 Introduction
Chapter1 Introduction
DATABASE SYSTEM
• Faculty of Computer Science
1
Database
•Chapter 1
Introduction
2
Database
Outline
Database
DBMS
Data Model
View of Data
3
Database
Database Systems
• What is Database?
• What is Database Management System (DBMS) ?
4
Database
What is a database?
• A database is a collection of data, contains information relevant to an
enterprise.
• A database is an organized collection of data.
• A database is a collection of information that is organized so that it can
easily be accessed, managed, and updated.
5
Database
What is a DBMS?
• Database management system (DBMS) is a special software application
that interacts with the user, other applications, and the database itself to
capture and analyze data.
• E.g: Some popular DBMS
6
Database
DBMS purpose
• To store data properly
• To provide simultaneous access to the data for many users
• To delimit the access to the data for different users
• To prevent data from loss
• To provide a way to store and retrieve database information that is both
convenient and efficient.
7
Database
Database systems
• Database systems are used to manage collections of data that are:
• Highly valuable
• Relatively large
• Accessed by multiple users and applications, often at the same time.
• A modern database system is a complex software system whose
task is to manage a large, complex collection of data.
• Databases touch all aspects of our lives
8
Database
9
Database
10
Database
11
Database
13
Database
Data Models
• Underlying the structure of a database is the data model: a collection of
conceptual tools for describing
• Data
• Data relationships
• Data semantics
• Consistency constraints
14
Database
Data Models
• There are a number of different data models:
• Relational model
• Entity-Relationship data model (mainly for database design)
• Object-based data models (Object-oriented and Object-relational)
• Semi-structured data model (XML)
• Other older models:
• Network model
• Hierarchical model
15
Database
Relational Model
• Example of tabular data in the relational model:
Columns
Rows
16
Database
View of Data
• Levels of data abstraction, to simplify users’ interactions with the system:
• The three levels of data abstraction:
17
Database
Data Abstraction
• View level: The highest level of abstraction describes only part of the entire
database. The system may provide many views for the same database. Views can
also hide information (such as an employee’s salary) for security purposes.
• Logical level: describes what data are stored in the database, and what
relationships exist among those data. E.g: Describe the type of a record instructor
with 4 fields:
type instructor = record
ID : char(5);
name : char(20);
dept_name : char(20);
salary : numeric(8,2);
end;
• Physical level: the lowest level of abstraction describes how the data are actually
stored.
18
Database
RDBMS
• RDBMS which stands for relational database management system, is a
program that lets users create, update, and administer a relational
database.
• Are used in most commercial projects
19
Database
20
Database