Database System: Nasreen Akhtar Fast-Nu Chiniot-Faisalabad Campus
Database System: Nasreen Akhtar Fast-Nu Chiniot-Faisalabad Campus
Nasreen akhtar
FAST-NU
Chiniot-Faisalabad campus
Week 1
First-generation
Hierarchical and Network
Second generation
Relational
Third generation
Object Relational
Object-Oriented
Data Models
Data model
A collection of concepts to describe the structure of a database, and certain constraints that
the database should obey.
A model is an abstraction process that hides details
Data modeling is used for representing entities of interest and their relationship in the
database.
The structure of a database includes data types, relationships, and constraints that should
hold for the data.
Most data models also include a set of basic operations for specifying retrievals and updates
on the database.
The data model specify dynamic aspects or behavior to specify valid define users operations.
For example COMPUTE GPA, grade
Categories of data models
Every update operation changes the database from one state to another.
The Schema is sometimes is called the intension, and the database state an extension
of the schema.
Three Schema Architecture
The ability to modify a scheme definition in one level without affecting a scheme
definition in a higher level is called data independence.
1. Logical data independence
The ability to modify the conceptual scheme without having to change external
schema or application program.
Usually done when logical structure of database is altered (change constraints, expand
and reduce data base).
2. Physical data independence
The ability to modify the physical scheme without having to change conceptual
schema.
Internal schema may be needed to reorganize physical files and improve performance.
For example by creating additional access structure- to improve the performance of
update and retrieval.
Database languages
DDL – the data definition language, used by database developer to define the
conceptual and internal schemas.
The DBMS has a DDL compiler to process DDL statements in order to
identify the schema constructs, and to store the description in the
catalogue.
Create command is used create table;
Alter command is used to alter table, columns, constraints and data
types.
Drop command is used to drop a column, database, table or constraints
Database languages
Network
Mainframe
SOFTWARE
(Application Programs, DBMS, Text Editors,
Compilers etc)
HARDWARE
(CPU, Controller, Memory, Disk, IO Devices)
Centralized and Client Server
Architectures for DBMSs
Client Server Architecture
Define specialized servers with specific functionalities (file servers, print servers, web
servers, database servers)
Many client machines can access resources provided by specialized server.
Client machines provide user with the appropriate interfaces to utilize servers, as well
as with local processing power to run local applications.
Some machines are client sites, with client software installed.
Client – a user machine that provides user interface capabilities and local processing.
Server – machine that provides services to client machines such as file access,
printing, and database access.
Two Tier Client-Server Architecture
• User Interface Programs and Application Programs run on the client side
• Interface called ODBC (Open Database Connectivity ) provides an Application
program interface (API) allow client-side programs to call the DBMS.
• A client program may connect to several DBMSs.
• Other variations of clients are possible: e.g., in some DBMSs, more
functionality is transferred to clients including data dictionary functions,
optimization and recovery across multiple servers, etc. In such situations the
server may be called the Data Server.
Three Tier Client-Server Architecture