DBMS Assignment Answers
DBMS Assignment Answers
Network Model
Advantages:
- Can represent complex relationships (many-to-many).
- More flexible than hierarchical model.
- Data access is faster due to multiple paths.
Disadvantages:
- More complex to design and maintain.
- Requires navigational access to retrieve data.
Normal Forms:
- 1NF: Atomic values.
- 2NF: No partial dependency.
- 3NF: No transitive dependency.
BCNF (Boyce-Codd Normal Form): A stricter version of 3NF.
Example:
Relation: Course(Student_ID, Student_Name, Course_Name, Instructor)
Problem: Redundancy if a student enrolls in multiple courses.
To achieve BCNF:
Split into:
1. Student_Course(Student_ID, Course_Name)
2. Course_Instructor(Course_Name, Instructor)
DML (INSERT):
INSERT INTO Student VALUES (1, 'John');
UPDATE:
UPDATE Student SET Name = 'Jane' WHERE ID = 1;
DCL (GRANT):
GRANT SELECT ON Student TO user1;
TCL:
COMMIT: Saves changes.
ROLLBACK: Undoes changes.
7. Architecture of a Database System
Three Schema Architecture:
1. External Level (View Level): Defines user-specific views.
2. Conceptual Level (Logical Schema): Describes structure and relationships.
3. Internal Level (Physical Schema): Defines physical storage.
Recovery Methods:
1. Log-Based Recovery
2. Shadow Paging
3. Checkpointing
Serializability:
Ensures same result as serial execution.
Types:
- Conflict Serializability
- View Serializability
Physical Protection:
- Backups
- RAID
- Firewalls