Unit-1-Introdcution-to-Advanced-Database-Systems
Unit-1-Introdcution-to-Advanced-Database-Systems
Introduction to Advanced
Database System
1
UNIT
.
Introduction
Topic
Overview of Database Systems
1
Time Allotment: 5 hours
Learning Objectives
At the end of the session, you will be able to use and execute:
1
Leaning Guide in Advanced Database System
Introduction to Advanced Database System
• In the early days, database applications were built on top of file systems
Levels of Abstraction
• Logical level: describes data stored in database, and the relationships among the
data.
type customer = record
name : string;
street : string;
city : integer;
end;
• View level: application programs hide details of data types. Views can also hide
information (e.g., salary) for security purposes.
2
Leaning Guide in Advanced Database System
Introduction to Advanced Database System
View of Data
• Physical Data Independence – the ability to modify the physical schema without
changing the logical schema
Applications depend on the logical schema
In general, the interfaces between the various levels and components should
be well defined so that changes in some parts do not seriously influence
others.
Data Models
• Entity-Relationship model
3
Leaning Guide in Advanced Database System
Introduction to Advanced Database System
• Relational model
The relational model is a foundational framework for structuring and querying data in
a database. Proposed by Edgar F. Codd in 1970, it organizes data into tables, which
are formally known as relations. The relational model is widely used due to its
simplicity, flexibility, and the power of its query language, SQL (Structured Query
Language).
1. Relations (Tables):
o Definition: A relation is a table with columns and rows. Each table
represents a set of entities with attributes.
o Example: A table named Students might include columns for StudentID,
Name, and Age.
2. Tuples (Rows):
o Definition: A tuple is a single row in a table, representing a single
instance of the entity.
o Example: In the Students table, a row could be (1, 'Alice', 20).
3. Attributes (Columns):
o Definition: Attributes are the properties or characteristics of the entities
represented in the table.
o Example: In the Students table, the columns StudentID, Name, and Age
are attributes.
4. Domains:
o Definition: A domain is a set of allowable values for one or more
attributes.
o Example: The domain for the Age attribute might be all non-negative
integers.
5. Primary Key:
o Definition: A primary key is a unique identifier for each tuple in a table. It
ensures that each record can be uniquely identified.
o Example: In the Students table, StudentID could be the primary key.
6. Foreign Key:
o Definition: A foreign key is an attribute in one table that links to the
primary key of another table, creating a relationship between the two
tables.
o Example: If there is an Enrollments table, the StudentID in this table
would be a foreign key referencing the Students table.
4
Leaning Guide in Advanced Database System
Introduction to Advanced Database System
7. Integrity Constraints:
o Entity Integrity: Ensures that the primary key of a table is unique and not
null.
o Referential Integrity: Ensures that a foreign key value always points to
an existing, valid tuple in the referenced table.
• Other models:
object-oriented model
semi-structured data models
Older models: network model and hierarchical model
DDL is a subset of SQL (Structured Query Language) used to define the database
structure or schema. It includes commands such as:
DML is a subset of SQL used for managing data within schema objects. It includes
commands such as:
5
Leaning Guide in Advanced Database System
Introduction to Advanced Database System
Topic
Overview of Database System Components
2
Time Allotment 5 hours
Learning Objectives
At the end of the session, you will be able to use and execute
Database Users
• Users are differentiated by the way they expect to interact with the system
- Application programmers – interact with system through DML calls
- Sophisticated users – form requests in a database query language
- Specialized users – write specialized database applications that do not fit
into the traditional data processing framework
- Naive users – invoke one of the permanent application programs that
have been written previously
E.g. people accessing database over the web, bank tellers, clerical staff
Database Administrator
• Coordinates all the activities of the database system; the database administrator
has a good understanding of the enterprise’s information resources and needs.
• Database administrator's duties include
Schema definition
Storage structure and access method definition
Schema and physical organization modification
Granting user authority to access the database
Specifying integrity constraints
Acting as liaison with users
6
Leaning Guide in Advanced Database System
Introduction to Advanced Database System
Transaction Management
Storage Management
• Storage manager is a program module that provides the interface between the
low-level data stored in the database and the application programs and queries
submitted to the system.
Summary Unit
A Database Management System (DBMS) organizes and manages data efficiently using
a collection of interrelated data and a set of programs for access. It provides a structured
environment for data handling, crucial in sectors like banking, airlines, and universities.
Unlike file systems, DBMS resolves issues of data redundancy, isolation, and integrity,
offering solutions through levels of abstraction, including physical, logical, and view levels.
Key components include Entity-Relationship (ER) and relational models for data structure,
and SQL’s Data Definition Language (DDL) and Data Manipulation Language (DML) for
database management.
7
Leaning Guide in Advanced Database System
Introduction to Advanced Database System
References
8
Leaning Guide in Advanced Database System