2 DBMS Basics
2 DBMS Basics
-----------------------------------------
Unit 1: Introduction to DBMS
A DBMS is software that allows users to define, create, maintain, and control
access to databases.
Benefits of DBMS:
- Data Redundancy Control
- Data Integrity
- Data Security
- Concurrent Access
-----------------------------------------
Unit 2: Data Models
1. Hierarchical Model
2. Network Model
3. Relational Model (Most widely used)
-----------------------------------------
Unit 3: Entity Relationship Model (ER Model)
Components:
- Entity: Real-world object
- Attributes: Properties of entities
- Relationships: Associations among entities
Types of Attributes:
- Simple, Composite, Derived, Multivalued
-----------------------------------------
Unit 4: Normalization
-----------------------------------------
Unit 5: SQL - Structured Query Language
Basic Queries:
- SELECT * FROM students;
- INSERT INTO students VALUES (...);
- UPDATE students SET name='John' WHERE id=1;
- DELETE FROM students WHERE id=2;
Joins:
- INNER JOIN, LEFT JOIN, RIGHT JOIN, FULL OUTER JOIN
-----------------------------------------
Conclusion
DBMS is the foundation for handling data in most applications. Mastering SQL and
understanding database design is critical in software development.