Relational and Distributed Databases
Course Code | CUCS1005 | Credits | 2+2+0 |
Relational and Distributed Databases
Overview of Database
Why Databases?
Introduction to Databases
A Database Management System (DBMS) organizes and manages a large amount of interrelated data. The term interrelated means that pieces of data are connected or associated according to some logical relationships. The DBMS includes software programs that allow users to access, update, and manage this data. Rather than storing data separately in isolated files, a DBMS integrates data so that duplication is reduced and consistency is maintained.
Example:�Consider a university database system. It stores information about students, courses, instructors, and departments. These pieces of data are interrelated:
Student Table | Course Table | Enrollment Table |
SID | Name | Dept |
Introduction to Databases
Example:�Imagine a banking system where thousands of customers access their account details through ATMs or online banking at the same time. When a user searches for their account balance, the DBMS:
Database Applications
Limitations of File Systems
Example
Limitations of File Systems
Example
Purpose of DBMS
View of Data
Levels of Data Abstraction
Levels of Data Abstraction
A Database Management System (DBMS) hides the complex internal details of data storage and provides data representation at different levels of abstraction. This layered view allows users to access and interact with data without needing to understand how it is physically stored, ensuring simplicity, security, and flexibility.
DBMS uses three abstraction levels:
1. Internal Level (Physical Level)
Example: A user requests a student record, but does not need to know which disk block or page contains the record.
Levels of Data Abstraction
2. Conceptual Level (Logical Level)
Example: A university database logically represents entities like STUDENT, COURSE, and ENROLLMENT and their relationships, but does not describe how they are stored on disk.
Levels of Data Abstraction
3. External Level (View Level)
Example:
Instances vs Schemas
Data Models
Relational Model
Database Languages
Examples of DDL commands
Examples of DML commands
Database Users
Summary