DBMS Mid1 Assignment Detailed
DBMS Mid1 Assignment Detailed
1. **Physical Level**: Describes how data is actually stored (e.g., file structures, indexing).
2. **Logical Level**: Defines what data is stored and the relationships between them.
3. **View Level**: Defines how different users see the data, ensuring security and simplicity.
Example: A student database has different views for students, professors, and administrators.
Each entity has attributes (e.g., Book_ID, Train_Number) and relationships (e.g., Student borrows
Book).
3. Major Components of ER Diagrams
The key components of an ER diagram are:
Example: In a student database, Student_ID must be unique and Course_ID in enrollment must
reference an existing Course.
Example:
- R = { (1, 'Alice'), (2, 'Bob') }
- S = { (2, 'Bob'), (3, 'Charlie') }
- R UNION S = { (1, 'Alice'), (2, 'Bob'), (3, 'Charlie') }
- R INTERSECT S = { (2, 'Bob') }
Example:
- Table: Students (ID, Name)
- Table: Enrollments (ID, Course)
- Natural Join returns students with course enrollments, while Left Outer Join also includes students
without courses.