Académique Documents
Professionnel Documents
Culture Documents
DATABASE DESIGN
1. Description
a) Integer:-
b) Varchar:-
It is used to store alpha numeric characters. In this data type
we can set the maximum number of characters upto 8000 ranges
by default SQL server will set the size to 50 characters large.
19
c) Date/Time:-
Patient Table:
Doctor Table:
Lab Table:
Inpatient Table:
Outpatient Table:
21
Room Table:
Bill Table:
E-R Diagram
22
Entity:-
Relationship:-
Attributes:-
23
Symbols Meaning
Entity
Relationship
Attribute
Key Attribute
E1 R E2
Cardinality Ratio N: 1 for E1:
E2 in R
24
gend weight
er
patient doctori
addre
d
ss
phone
no
Consu
disease
lts
Doctori
dept d
doctor
Doctor
name
amou
nt Chec
lab no
categor ks
y Pid
date lab
Report weigh
pid t
Deci doctori pid
advan
des d
ce
date inpatient lab
outpatient
of lab no
admiss date
no
ion
date of room
dischar no
ge issued bill no
Admitted
_to
statu to to
medicine pid
s charge
room room
lab
no charge bill
room charge
patient
room
operation type
type bill
charge
no of
healt advan doctor
days nursing
charge h ce charge
card25