DBMS Unit1 Unit2 Notes
DBMS Unit1 Unit2 Notes
---
1. Introduction to Databases
A Database is a structured collection of data stored in a computer system so that it can be easily accessed, managed,
and updated. Databases are essential for storing information in modern software systems.
Examples:
2. Database Users
- Database Administrator (DBA): Manages the DBMS and ensures efficient operation.
4. Applications of DBMS
- Banking systems
- E-commerce
5. Advantages of DBMS
- Reduces redundancy
6. Disadvantages of DBMS
- Complexity
- Training requirements
8. Data Models
- Logical Data Independence: Ability to change conceptual schema without affecting external schema.
- Physical Data Independence: Ability to change internal schema without affecting conceptual schema.
12. Database System Architectures
---
Components:
2. Attribute Types
3. ER Diagrams Notation
- Rectangle: Entity
- Ellipse: Attribute
- Diamond: Relationship
- Lines: Connections
Example ER Diagram
[STUDENT]----(Enrolled)----[COURSE]
| |
[StudentID] [CourseID]
[Name] [CourseName]
- Relation: Table
- Tuple: Row
- Attribute: Column
Example:
- No repeating groups
- Must be in 1NF
- Must be in 2NF
Example of Normalization
Original Table:
---------------------------------------
Normalized Tables:
- Student(StudentID, Name)
- Course(Course, Instructor)
- Enrollment(StudentID, Course)