0% found this document useful (0 votes)
29 views2 pages

DML 2

The document contains multiple INSERT statements that populate various tables in a database with sample data related to a hospital management system, including tables for patients, medical history, doctors, appointments, schedules, diagnoses and more.

Uploaded by

Dipesh Raj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views2 pages

DML 2

The document contains multiple INSERT statements that populate various tables in a database with sample data related to a hospital management system, including tables for patients, medical history, doctors, appointments, schedules, diagnoses and more.

Uploaded by

Dipesh Raj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

INSERT INTO Patient(email,password,name,address,gender)

VALUES
('[email protected]','hrishikesh13','Ramesh','Tamil Nadu', 'male'),
('[email protected]','hrishikesh13','Suresh','Karnataka', 'male'),
('[email protected]','hrishikesh13','Rakesh','Gujarat', 'male')
;

INSERT INTO MedicalHistory(id,date,conditions,surgeries,medication)


VALUES
(1,'19-01-14','Pain in abdomen','Heart Surgery','Crocin'),
(2,'19-01-14','Frequent Indigestion','none','none'),
(3,'19-01-14','Body Pain','none','Iodex')
;

INSERT INTO Doctor(email, gender, password, name)


VALUES
('[email protected]', 'male', 'hrishikesh13', 'Hrishikesh Athalye'),
('[email protected]', 'male', 'hrishikesh13', 'Hrishikesh Athalye')
;

INSERT INTO Appointment(id,date,starttime,endtime,status)


VALUES
(1, '19-01-15', '09:00', '10:00', 'Done'),
(2, '19-01-16', '10:00', '11:00', 'Done'),
(3, '19-01-18', '14:00', '15:00', 'Done')
;

INSERT INTO PatientsAttendAppointments(patient,appt,concerns,symptoms)


VALUES
('[email protected]',1, 'none', 'itchy throat'),
('[email protected]',2, 'infection', 'fever'),
('[email protected]',3, 'nausea', 'fever')
;

INSERT INTO Schedule(id,starttime,endtime,breaktime,day)


VALUES
(001,'09:00','17:00','12:00','Tuesday'),
(001,'09:00','17:00','12:00','Friday'),
(001,'09:00','17:00','12:00','Saturday'),
(001,'09:00','17:00','12:00','Sunday'),
(002,'09:00','17:00','12:00','Wednesday'),
(002,'09:00','17:00','12:00','Friday')
;

INSERT INTO PatientsFillHistory(patient,history)


VALUES
('[email protected]', 1),
('[email protected]', 2),
('[email protected]', 3)
;

INSERT INTO Diagnose(appt,doctor,diagnosis,prescription)


VALUES
(1,'[email protected]', 'Bloating', 'Ibuprofen as needed'),
(2,'[email protected]', 'Muscle soreness', 'Stretch morning/night'),
(3,'[email protected]', 'Vitamin Deficiency', 'Good Diet')
;

INSERT INTO DocsHaveSchedules(sched,doctor)


VALUES
(001,'[email protected]'),
(002,'[email protected]')
;

INSERT INTO DoctorViewsHistory(history,doctor)


VALUES
(1,'[email protected]'),
(2,'[email protected]'),
(3,'[email protected]')
;

You might also like