Database Engineering Detailed Answers Fixed
Database Engineering Detailed Answers Fixed
3. Explain the levels of data abstraction and differentiate schema and instance.
- Physical Level: Lowest level, defines physical storage.
- Logical Level: Defines relationships between tables.
- View Level: How users see the data.
- Schema: Defines database structure.
- Instance: The actual stored data at a given time.
4. ER Diagram Notations
- Rectangle: Entity.
- Oval: Attribute.
- Diamond: Relationship.
- Line: Relationship connection.
5. Types of Attributes
- Simple: Atomic values (Example: Name, Age).
- Composite: Divided into sub-parts (Example: Full Name -> First Name, Last Name).
- Derived: Computed from another attribute (Example: Age from DOB).
- Multivalued: Can have multiple values (Example: Phone Numbers).
8. Anomalies in Databases
- Insertion Anomaly: Cannot add data without unnecessary fields.
- Deletion Anomaly: Removing one record affects other important data.
- Update Anomaly: Changing a value requires multiple updates.
9. Armstrong's Axioms
- Rules used to derive functional dependencies.