Hospital Database Sec ST
Hospital Database Sec ST
STAFF
ROOM
RoomNumber
RoomFloor
RoomType
EmployeeID
Specialty
Degree
NURSES
1
EmployeeID
Qualification
Chief
uc
EmployeeID
FirstName
LastName
Salary
YearsInService
Category
RoomNumber
Further Information:
an
gi
The relationship between the table Staff and Doctors (or Nurses) is one-to-one, as an employee ID may belong to a single
doctor or to a single nurse. In the tables Doctors and Nurses, the employee ID is both a primary and a foreign key.
The room type may be only one of the following: office, laboratory, reserve.
The room floor may take values from 1 to 6.
The years of service count the time from the employment date to the present date.
The category may be only one of the following: doctor, nurse.
The specialty may be: surgeon, pediatrician, internal.
The degree may be: intern, resident, physician.
The qualification may be: surgery, pediatrics, general.
The chief field accepts only two values: yes and no.
SQL Requests:
os
D
ra
g
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.