DBMS Topics - Detailed Explanation
1. What is Data?
Data are raw facts and figures without meaning on their own.
2. What is Database?
A database is an organized collection of related data that can be accessed and modified easily.
3. What is DBMS?
A DBMS (Database Management System) is software that manages databases and provides functionalities
for data storage, retrieval, and manipulation.
4. Advantages of DBMS
- Data integrity
- Reduced redundancy
- Data security
- Easy data access
5. DBMS vs File System
File systems have high redundancy, poor security, and no querying capability. DBMS overcomes these
issues.
6. Types of DBMS
- Hierarchical DB
- Network DB
- Relational DB
- NoSQL DB
7. Architecture of DBMS
- 1-tier
- 2-tier
- 3-tier
8. DBMS Users
- DBA
- Developers
- End-users
9. Relational Model
Data represented as tables (relations) of rows (tuples) and columns (attributes).
10. Keys
- Primary key: unique row identifier
- Candidate key: minimal unique key
- Super key: uniquely identifies rows, may be extra columns
- Foreign key: references PK in another table
11. ER Model
Graphical representation with entities, attributes, and relationships.
12. Normalization
- 1NF: No multivalued attributes
- 2NF: No partial dependency
- 3NF: No transitive dependency
- BCNF: Every determinant is a candidate key
13. SQL Basics
- SELECT: retrieve data
- INSERT: add data
- UPDATE: modify data
- DELETE: remove data
14. SQL Joins
- INNER JOIN
- LEFT JOIN
- RIGHT JOIN
- FULL OUTER JOIN
15. Relational Algebra
Includes operations: SELECT, PROJECT, JOIN, UNION, INTERSECTION, DIFFERENCE.
16. Transactions & ACID
- Atomicity
- Consistency
- Isolation
- Durability
17. Concurrency Control
Includes locking, deadlock handling, timestamp ordering.
18. Recovery
Log-based recovery and checkpointing for crash recovery.
19. Indexing
B+ trees, hash indexes, bitmap indexes for fast access.
20. Query Optimization
Choosing efficient execution plans for queries.
21. Distributed DBMS
Databases distributed across locations with challenges of replication and consistency.
22. NoSQL
Non-tabular databases for big data (MongoDB, Cassandra).
23. DBMS Security
Includes authentication, authorization, and encryption.