Lecture5 6 - Database Architecture Environment
Lecture5 6 - Database Architecture Environment
Database Systems
2
The Three-Level ANSI-SPARC Architecture
3
1-External Level
• This level describes that part of the database that is relevant to each
user.
• Each user has a view of the “real world” represented in a form that is
familiar for that user.
• The external view includes only those entities, attributes, and relationships
in the “real world” that the user is interested in.
4
2-Conceptual Level
• This level describes what data is stored in the database and the
relationships among the data.
5
3-Internal Level
• record descriptions for storage (with stored sizes for data items);
• record placement;
6
Example – Difference between 3 levels
7
Objectives of Three-Level Architecture
➢ Skeleton structure of the database that defines the objects in the database
9
Contd…
➢ There are three different types of schema in the database and these are defined
according to the levels of abstraction of the three-level architecture
➢ At the highest level, we have multiple external schemas (also called subschemas)
that correspond to different views of the data.
➢ At the conceptual level, we have the conceptual schema, which describes all the
entities, attributes, and relationships together with integrity constraints.
➢ There is only one conceptual schema and one internal schema per database.
10
Data Independence
11
Logical data independence
➢ Clearly, the users for whom the changes have been made need to be
aware of them, but what is important is that other users should not be.
12
Physical data independence
➢ From the users’ point of view, the only effect that may be noticed is a
change in performance.
13
Database Languages
14
DDL & DML The Data Manipulation Language (DML)
15
Data Models and Conceptual Modeling
• It should provide the basic concepts and notations that will allow database designers
and end-users to communicate unambiguously and accurately their understanding of the
organizational data.
16
Components of a Data Model
(2) a manipulative part, defining the types of operation that are allowed on the
data (this includes the operations that are used for updating or retrieving data
from the database and for changing the structure of the database);
(3) a set of integrity constraints, which ensures that the data is accurate.
17
3 Broad categories of data models
18
1-Object-Based Data Models
• The ER model has emerged as one of the main techniques for database
design
19
2-Record-Based Data Models
20
2.1-The relational data model
21
2.2-Network data model
22
2.3-Hierarchical data model
23
3-Physical Data Models
24
Conceptual Modeling
25
Functions of a DBMS
26
Thankyou
Any Queries?
27