DBMS_Notes_Unit1_Unit2
DBMS_Notes_Unit1_Unit2
--------------------------------------------------
1. Overview of DBMS:
- A Database Management System (DBMS) is software designed to manage and interact with
databases.
- DBMS provides data abstraction and independence, while file systems lack these features.
- Architecture:
- Data Independence:
3. Database Languages:
- DDL (Data Definition Language): Used to define database schema (e.g., CREATE, ALTER).
- DML (Data Manipulation Language): For data retrieval and manipulation (e.g., SELECT,
INSERT, UPDATE).
- Concepts of ER Model:
- Constraints:
- Keys:
- Aggregation:
- Extended ER Model:
- Core Concepts:
- Data is stored in tables (relations) consisting of rows (tuples) and columns (attributes).
- Constraints:
- Referential Integrity: Foreign keys must match primary keys in referenced tables.
- Domain Constraints:
- Relational Algebra:
- Relational Calculus:
2. Introduction to SQL:
- Advantages include user-friendly syntax, portability, and support for large databases.
- Commands:
- Joins:
- Subqueries:
- Cursors in SQL: