DBMS Complete Guide Clean
DBMS Complete Guide Clean
Summary Tables
Normalization
-------------
Normal Form | Rule
------------|---------------------------
1NF | No multivalued attributes
2NF | No partial dependency
3NF | No transitive dependency
BCNF | Every determinant is candidate key
ACID Properties
---------------
Property | Meaning
------------|--------------------------
Atomicity | All or nothing
Consistency | Valid state transitions
Isolation | Transactions independent
Durability | Changes persist after commit
3. Normalize:
Unnormalized: (StudentID, StudentName, Courses( CourseName, Marks ))
Solution:
- Student(StudentID, StudentName)
- Course(CourseID, CourseName)
- Enrollment(StudentID, CourseID, Marks)
1. Draw ER diagram
2. Convert ER to relational schema
3. Normalize tables to BCNF
4. Write SQL to:
- Add new books and members
- Issue or return books
- Search books by author or title
5. Create indexes on BookID and MemberID
6. Implement basic app (optional): Python or Java with DB