2. As we know that the manual system is too much difficult
to handle the record in our daily life. In the present era
of globalization and advanced technology efficient
record keeping cannot be overemphasized. Imagine the
scenario when the manual processes and manual
modes of instruction get replaced with electronic
systems. One of such replacement can be done in the
area of patient’s database management system within a
hospital. Developing patient database management
system software would benefit the hospital management
who can have effortless access to the data securely and
more easilsy.Hospitals are not excluded in record
keeping. The records kept include patient data, which
help to maintain patient’s medical records.
3. TABLES USED IN DATABASE
Patients table
Doctors table
Specialization table
Ward table
Disease table
4. QUERIES USED
Insert into
Delete row
Update
Alter
Add colum
Delete column
Rename column
Joining
FK constraint
PK constraint
CHECK constraint
14. CONSTRAINTS USED IN DOCTORS TABLE
alter table doctors
add(constraint ward_fk FOREIGN
KEY(Ward_No)references Ward(Ward_No));
alter table doctors
add(constraint special_fk FOREIGN
KEY(Specialist_No)references
specialization (Specialist_No));
alter table doctors
add constraint check_shift CHECK(shift IN(‘E','M'));
15. INSERT, UPDATE,DELETE IN DOCTORS
insert into doctors
values('Ali','8:30to2:30','M','null','No',1,'p2');
delete from doctors
where name='Ali'
update doctors
set name='Ali Hydar'
where name='Ali'
18. INSERT,UPDATE,DELETE WARD
insert into ward
values(1,'Surgery');
update ward
set ward_name='Daignostic'
where ward_no=1
delete from ward
where ward_no=1;