DBMD and UHV assignment solution
DBMD and UHV assignment solution
Assignment 1
7. ERD vs. EERD & Hospital Management System Diagram (10 Marks)
Here are the concise answers with 5-7 key points for each 5-mark question:
1. A logical schema represents database relationships using foreign keys and inclusion
dependencies.
2. Directed arcs indicate foreign key constraints, ensuring data consistency.
3. Example: Employee(DeptID) → Department(DeptID), enforcing referential integrity.
4. Inclusion dependency: Ensures that values in one table must exist in another.
5. Benefits: Reduces redundancy, improves retrieval, maintains consistency.
6. Drawback: Complex queries due to multiple joins.
7. Cross-referencing approach is used for many-to-many relationships via
intermediate tables.
Ensures foreign key values in a table must reference existing values in another table.
Importance: Maintains data consistency and prevents orphan records.
Foreign Key: An attribute in one table that refers to the primary key in another.
Ensures that data transformation between models (ER to relational) does not lose
information.
Key concept: Every entity, relationship, and constraint must be representable in the
target model.
6. Purpose of Normalization (2 Marks)
fd2 (Flight#, Date → Aircraft) and fd3 (Flight#, Date → Pilot) are preserved in
separate tables.
fd1 (Airport, Flight#, Date → Gate#) remains intact in FLIGHT_DETAILS.
All dependencies are preserved, so dependency preservation is maintained.
Q9. Multi-Valued Dependency & 4NF in STUDENT Relation (5 Marks)
Here, Sid → Shoe_size and Sid → Marital_status, but they are not independent;
o Shoe_size is a physical characteristic,
o Marital_status is a life event.
No multi-valued dependency exists because Shoe_size and Marital_status are not
independent but functionally dependent on Sid.
Assignment 3
Example:
A JOIN operation in SQL combines rows from two or more tables based on a related
column.
(b) Join Compatibility
Two tables are join-compatible if they have a common attribute with the same data type.
Example:
Example:
Example:
SELECT Name
FROM Employees
WHERE Salary > (SELECT AVG(Salary) FROM Employees);
Q5: SQL Schema & ALTER TABLE Statements (5 Marks)
(c) Enforce Business Rule (List Price ≥ 20% Higher than Unit Cost)
Example: Cursor
Example: Procedure
UHV
Assignment 1
Q1: What do you mean by value education? Why is there a need for value
education? (10 Marks)
Value education refers to the process of instilling moral, ethical, and social values in
individuals to help them become responsible, compassionate, and well-rounded citizens. It
involves learning about honesty, integrity, respect, empathy, and other essential human
values.
Q3: How does value education help in fulfilling one’s aspirations? (5 Marks)
1. Clarity of Goals: Helps individuals define what they truly want in life, beyond
materialistic desires.
2. Self-Awareness: Encourages introspection, leading to better decision-making.
3. Balanced Life Approach: Promotes harmony between personal, social, and
professional aspirations.
4. Ethical Success: Ensures that success is achieved with integrity and honesty.
5. Satisfaction and Happiness: Helps individuals attain inner peace and long-term
fulfillment.