Professional Documents
Culture Documents
E Societys
B.V.BHOOMARADDI COLLEGE OF ENGG. & TECH.
HUBLI-580031
DEPARTMENT OF
INSTRUMENTATION TECHNOLOGY
Problem statement
To create a Hospital Management Database system that can
update or modify various records in the system.
Requirements
The objective of the system is to provide and maintain
information about the working of a hospital and the
various aspects associated with it.
The various attributes required are Job_Designation,
Hospital, Patient, Ward, Tests, bills & operations.
ER diagram
Schema
JOB_
DESIGNATION
Job_ID
Job_name
shift
experience
Doctor
D_ID
Name
Age
Place
Address
Job_ID
Gender
Hospital
Name
D_ID
Ph_No
Patient
P_ID
P_name
Address
Ph_no
Age
Gender
Tests
T_ID
Name
P_ID
Result
D_ID
Operation
0_ID
Type
P_ID
Cost
Ward
R_No
Type
D_ID
P_ID
N0_of_Bed
Bill
B_N0
Tables
Doc_charge
P_ID
Room_charge
JOB_DESCRIPTION
Job_id
Job_name
Shift
experience
Jb01
Physician
Day
10
Jb02
sNuer
Day
12
Jb03
Surgen
Night
15
Jb04
Anothprgisl
Day
10
Doctor
D_ID
D01
D02
D03
D04
NAME
ROHIT
ADITYA
PRIYA
POOJA
AGE
40
50
35
34
JOB_ID
Jb01
Jb02
Jb03
Jb04
GENDER
M
M
F
F
place
HUBLI
DHARWAD
HYDERABAD
AGRA
Address
JAYANAGAR
VIDYANAGAR
RAJNAGAR
VANINAGAR
D_ID
D01
D02
D03
D04
Ph_no
7458236540
8865924130
9856241340
3698521470
Hospital
Name
KIMS
BIMS
HKDB
BGES
Patient
P_ID
P_name
0P1t
Sonal
0P2t
pSarsid
0P3t
Neha
0P4t
Anad
Address
Gokul
oadrhubli
Madhur
ycoln
hubli
Madhur
ycoln
hubli
eMashwlr
th
am6
cros
aBnelogr
Phone_No
Age
Gendr
9123876
23
Female
876539
Male
7865432
25
Female
678534
26
Male
Tests
T_ID
T_name
T_Date
D_I
P_ID
Ts01
HB-RBc
e12b-f0
Ts02
CT scan
10-dec-2009
D02
0P2t
Ts03
MRIscan
a08n-j24
D03
0P3t
Ts04
paothgyl
08-sept19
D04
0P4t
D01
0P1t
OPERATION
O_ID
O01
O02
TYPE
DIALYSIS
KIDNEY
O03
O04
HEART
LEG
P_ID
COST
6000
7000
0P1t
0P2t
0P3t
0P4t
8500
7400
WARD
W_NO
W01
W02
W03
W04
YTPE
AC
EX
NAC
GEN
_DI
D01
D02
D03
D04
DP_I
0P1t
0P2t
0P3t
0P4t
EBD
2
6
1
3
BILLS
B_N0
B01
B02
B03
B04
D0C_CHARGE
5000
6520
32510
15697
P_ID
0P1t
0P2t
0P3t
0P4t
ROOM_CHARGE
1500
2000
366
120
DATA VALUES
create table job_desigation(
job_id varchar2(20) primary key not null,
job_name varchar(25) not null,
shift varchar2(15),
year_of_experience int);
create table doctor(
s_id varchar2(20) primary key not null,
s_fname varchar2(20),
s_lname varchar2(20),
date_of_emp date,
adrress varchar2(40),
phone_no varchar2(20),
job_id varchar2(20),
foreign key (job_id) references job_designation(job_id),
salary int);
create table hospital(
p_id varchar2(20) primary key not null,
p_fname varchar2(20),
p_lname varchar2(20),
address varchar2(40),
phone_no varchar2(20),
email_id varchar2(20),
Insert values