-
Notifications
You must be signed in to change notification settings - Fork 115
/
InsertDML.sql
70 lines (61 loc) · 2.01 KB
/
InsertDML.sql
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
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]')
;