DBMS Unit-wise Notes
DBMS Notes
Introduction:
Database Management System (DBMS) is a software to manage databases efficiently.
It allows storage, retrieval, and manipulation of data.
Topics:
- Data Models: Hierarchical, Network, Relational.
- Keys: Primary Key, Candidate Key, Foreign Key, Composite Key.
- SQL:
* DDL (CREATE, ALTER, DROP)
* DML (INSERT, UPDATE, DELETE)
* DCL (GRANT, REVOKE)
- Normalization:
* 1NF: Remove repeating groups.
* 2NF: Remove partial dependency.
* 3NF: Remove transitive dependency.
- ER Diagrams: Entities, attributes, relationships, cardinalities.
- Transactions: ACID properties (Atomicity, Consistency, Isolation, Durability).
- Concurrency Control: Locking, Deadlock handling.
- Indexing & Hashing for performance.
Example SQL:
CREATE TABLE Student(RollNo INT PRIMARY KEY, Name VARCHAR(50), Marks INT);