Docsity

Develop the database system and Implement a query language, Study notes of Database Management Systems (DBMS)

Partial preview of the text

Download Develop the database system and Implement a query language and more Study notes Database Management Systems (DBMS) in PDF only on Docsity!

GU-2020-

DATABASE (HND103)

HND COMPUTING

Assignment 2

Title: Developing and Testing of Relational Database System

LO2: Develop a fully functional relational database system, based on an

existing system design.

LO3 : Test the system against user and system requirements.

Submitted By:

Simranjit Kaur

GU-2020-

P2: Develop the database system with evidence of user interface, output and

data validations, and querying across multiple tables.

Answer: Hospital management database system has the following entities with their

attributes.

Employee (Emp_id, Emp_name, Emp_position, Emp_salary)

Department (Dep_id, Dep_name, Emp_id)

Doctor (Doc_id, Doc_name, Doc_address, Doc_contactno, Doc_specialication, Emp_id)

Room (Room_id, Room_type, floorno)

Nurse (N_id, N_name, N_address, N_contactno, N_position, Room_id)

Patient (Pat_id, Pat_name, Pat_address, Pat_contactno, Pat_diagnosis, Apt_date, Apt_time,

Doc_id, Room_id)

1.1: Record of Employee

GU-2020-

1.3: Record of Doctor

GU-2020-

1.4: Record of Room

1.5: Record of Nurse

GU-2020-

a) List out the number of patients who have taken appointment with a psychiatrist.

a) List the patient name who is treated by doctor ‘Anurag Gupta’ and is in emergency.

c) List doctor names whose specialization is ‘Cardiologist’.

d) List the nurse names along with their allocated rooms.

Answer: a) Number of patients who have taken appointment with a psychiatrist.

b) Patient name who is treated by doctor ‘Anurag Gupta’ and is in emergency.

GU-2020-

c) Doctor names whose specialization is ‘Cardiologist’.

d) Nurse names along with their allocated rooms.

GU-2020-

Page 10