Mini Project Year V
Mini Project Year V
Project Goal: the goal of the project is providing realistic experience in the conceptual design,
logical design, implementation, operation, and maintenance of a small relational database as well
as familiarizing with user interface or frontend applications.
i. Calculate the avg value of the cost of treatment for a patient conducted in the hospital
ii. Show the first date when patient visits a hospital
iii. Return the patient with maximum day of stay in the hospital.
iv. Show the total procedures conducted in the hospital for some specific year.
Assumption: The management of these systems are not very computer literate. You are being
asked to design the database, populate it with sample data, and to write several SQL queries to
demonstrate the system.
Project Requirements
1. Entity-Relationship Model
Construct an Entity-Relationship model representing the conceptual design of the
database.
Include all of the entity sets, primary key for each entity set, and all appropriate
relationship sets.
Include primary keys in the E-R diagram, and show the cardinalities of the
relationships
2. Relational Model
Convert the E-R schema to a relational database schema. Be sure to include
appropriate indices and constraints. Be sure your relational schema conforms to your
E-R schema. If you change your design later in the project don’t forget to update the E-
R schema.
What to submit (both on presentation and via email unless stated otherwise):
1. Your E-R diagram (on paper– no need to create an electronic document, though you are
free to do so).
2. Your relational schema
3. Do NOT submit the contents of all your tables. Just run select count (*) from r, for each
relation r in your schema so that will get a sense of how big your tables are
4. Submit the SQL query and answers
5. Presentation and showing the developed application
Deadline: May 6, 2024