Fundamentals of Databases IT403
Project Instructions
- You can work on this project as a group (minimum 3 and maximum 4 students). Each group member must submit the project individually with all group member names mentioned in the cover page.
- This project worth 14 marks and will be distributed as in the following:
- Identify the entity types, attributes, keys. (2 marks)
- Identify the relationship and cardinalities. (2 marks)
- Draw the ERD. (2 marks)
- Schemas before Normalization. (1.5 marks)
- Schemas after Normalization. (1.5 marks)
- Create the tables. (1.5 marks)
- Populate your tables with at least 5 rows. (1.5 marks)
- Execute the requested sample queries. (2 marks)
- Each student must submit one report about his/her chosen Project via the Blackboard (Email submission will not be accepted which will be awarded ZERO marks)
- Screenshots for answering SQL questions (f, g, and h).
- You are advised to make your work clear and well presented; marks may be reduced for poor presentation. This includes filling your information on the cover page.
- You MUST show all your work, and text must not be converted into an image, unless specified otherwise by the question.
- Late submission will result in ZERO marks being awarded.
- The work should be your own, copying from students or other resources will result in ZERO marks.
Hospital Management System
Year 2030, you are hired as a database developer in local hospital. The top management of the hospital is interested to design a new database to manage their daily routine work. In the requirement identification phase, you have identified five core elements in the hospital:
- Patients: The hospital stores crucial patient data, including their personal information (first name, last name, date of birth, gender), contact details (phone number, address), insurance information, and their medical history.
- Doctors: Hospital also maintains records of the medical professionals, including their specialization, contact information, license number, office hours, and email addresses.
- Appointments: For efficient management of the patients visits to the hospitals, the data about each appointment is stores as it connects patients with specific doctors. The appointment date and time, the reason for the visit, and the appointment status (e.g., scheduled, canceled, completed) is also stored.
- Medical Records: A comprehensive record of patients’ medical histories is maintained. It includes diagnosis details, treatment plans, prescriptions, test results, and the date of each medical visit. These records are associated with both patients and doctors.
- Medical Staff: Data related to hospital staff members, such as nurses, receptionists, and administrators is also stored. Information like their roles, contact details, shift timings, and salary is recorded for proper staff management.
Hospital Management System
- Fill the table below with all the Entities based on the given requirements:
Entity Type | Attributes of the Entity | Key |
- Fill the table below with all the relationship type based on the given requirements.
Relationship Type | Entities connected by the relationship type | Cardinality | Relationship attribute |
- Draw the ER diagram
- Fill the table below with all schemas before normalization.
Schema Name | Schema Attribute | Key |
- Fill the table below with all schemas after normalization up to the 3NF.
Schema Name | Schema Attribute | Key |
- Write the necessary SQL statements to create the tables.
- Insert at least five rows into each table.
- Write SQL queries to find the following:
- List of Doctors who have performed more than 10 surgeries.
- List of Patients admitted for surgery between 1/9/2023 and 31/9/2023.
- List of all the Patients who have not paid their bills till today.
- List of Doctors on leave in a particular month.
- List of Appointments with each Doctor with Patient name for a particular day.