You are on page 1of 9

create table patient_details

(s_no int,
id varchar(5) primary key,
first_name varchar(30),
last_name varchar(30),
gender char(1),
age int,
date_of_birth date,
phone_no int,
address varchar(100));

insert into patient_details values(1, 1001, 'KATHERINE', ' VALDES', 'F',


34, "22-02-1988", 8878788777, "no.6 walker street india");
insert into patient_details values(2, 1002, 'WILLIAM', 'NORMANN', 'M',
78, "16-06-1944", 8988987867, "no.9 baker street india");
insert into patient_details values(3, 1003, 'ANGIE', 'MARTIN', 'F',
45, "25-07-1977", 8987787878, "no.8 cross street india");
insert into patient_details values(4, 1004, 'LISA', 'CORBETT', 'F',
45, "25-07-1977", 8987787878, "no.8 cross street india");
insert into patient_details values(5, 1005, 'JOHN', 'MILAN', 'M',
23, "12-12-1999", 7868687987, "no.4 leeway street india");
insert into patient_details values(6, 1006, 'SELINA', 'GARRY', 'F',
56, "24-05-1966", 6868878879, "no.3 kohlin street india");
insert into patient_details values(7, 1007, 'JELIN', 'FREDRIK', 'F',
22, "18-05-2000", 6565756768, "no.1 john street india");
insert into patient_details values(8, 1008, 'JULIE', 'GRIFFIN', 'F',
16, "31-03-20", 4567856976, "no.34 alex street india");
insert into patient_details values(9, 1009, 'ALFIE', 'HOPE', 'M',
14, "14-07-2008", 2236548534, "no.56 king street india");
insert into patient_details values(10, 1010, 'ARTHUR', 'WILLIAMSON', 'M',
37, "07-06-1985", 3597606745, "no.89 james street india");
insert into patient_details values(11, 1011, 'LANA', 'MARK', 'F',
88, "10-04-1981", 5875454957, "no.76 smith street india");
insert into patient_details values(12, 1012, 'RONNIE', 'KARL', 'M',
79, "19-03-1985", 4354676998, "no.46 summer street india");
insert into patient_details values(13, 1013, 'JENNIFER', 'ALEX', 'F',
66, "15-03-1995", 6955796888, "no.25 burns street india");
insert into patient_details values(14, 1014, 'JAMES', 'ROBERT', 'M',
45, "16-08-1987", 9907576576, "no.98 spring street india");
insert into patient_details values(15, 1015, 'JOBERT', 'WOODS', 'M',
18, "29-10-2004", 5698678689, "no.08 bayberry street india");
insert into patient_details values(16, 1016, 'MICHAEL', 'THOMAS', 'M',
47, "31-10-1981", 3854545454, "no.35 east high street india");
insert into patient_details values(17, 1017, 'LEONARD', 'LUCAS', 'M',
26, "22-08-1996", 2865655877, "no.67 oak street india");
insert into patient_details values(18, 1018, 'LIAM', 'MATEO', 'M',
24, "30-11-1998", 4537454567, "no.8 devon street india");
insert into patient_details values(19, 1019, 'HARRY', 'LUNAS', 'M',
28, "18-05-1994", 1241434535, "no.06 ridge avenue india");
insert into patient_details values(20, 1020, 'ETHAN', 'JASON', 'M',
51, "14-03-1977", 7537357757, "no.23 myrtle street india");
SELECT * FROM [patient_details]
create table appointments
(s_no int,
id varchar(5) primary key,
first_name varchar(30),
last_name varchar(30),
gender char(1),
age int,
date_of_birth date,
phone_no int,
appointment_date date,
appointment_timing time,
doctor_name varchar(30),
address varchar(100),
payment varchar(100));

insert into appointments values(1, 1021, "ZAYN", "MALIK", "M", 22, "18-
05-2000", 7686869879,
"16-04-2022", "12:00 PM", "DR.SUNDAR", "no.43 prospect avenue india",
"RS.500");
insert into appointments values(2, 1022, "LAUREN", "CHRIS", "F", 31, "22-
02-1984", 7760686980,
"16-04-2022", "12:30 PM", "DR. SIMONE", "no.77 forest drive india",
"RS.600");
insert into appointments values(3, 1023, "CHRISTINA", "SEN", "F", 16, "31-
03-2006", 6060986088,
"16-04-2022", "1:00 PM", "DR.ANGELA", "no.60 park avenue india",
"RS.750");
insert into appointments values(4, 1024, "KAREN", "JAS", "F", 16, "31-03-
2006", 8980698689,
"16-04-2022", "8:45 PM", "DR.ANTON", "no.95 parkinsons street india",
"RS.420");
insert into appointments values(5, 1025, "OLIVER", "JOHN", "M", 32, "22-
02-1983", 8976987879,
"16-04-2022", "7:00 PM", "DR.LESLIE", "no.47 layla street india",
"RS,200");
insert into appointments values(6, 1026, "NOAH", "JACK", "M", 24, "18-05-
1998", 9877098099,
"16-04-2022", "8:00 AM", "DR.SANDY", "no.91 jacobs street india",
"RS.280");
insert into appointments values(7, 1027, "LACHLAN", "OLIVE", "M", 21,
"18-05-2001",
7097098090, "16-04-2022", "7:00 AM", "DR.MUKHEN", "no.03 betley
street india", "RS.590");
insert into appointments values(8, 1028, "JACKSON", "WILLIAM", "M", 35,
"22-02-1987",
8770979079, "16-04-2022", "2:00 PM", "DR.SWEETY", "no.50 hutchinson
street india", "RS.800");
insert into appointments values(9, 1029, "AVA", "LOMOV", "F", 67, "15-03-
1994", 9709789089,
"17-04-2022", "11:00 AM", "DR.SAMEER", "no.82 hutchkins street india",
"RS.1500");
insert into appointments values(10, 1030, "STEPHANYA", "PAUL", "F", 55,
"15-03-1984", 9709707097,
"17-04-2022", "4:00 PM", "DR.BETH", "no.04 kendor street india",
"RS.3000");
insert into appointments values(11, 1031, "AIYLA", "DANIEL", "F", 24, "18-
05-1998", 8696986977,
"17-04-2022", "5:00 PM", "DR.AMELIA", "no.88 maylin street india",
"RS.550");
insert into appointments values(12, 1032, "VICKY", "JOHN", "F", 17, "31-
03-2905", 7695758756,
"17-04-2022", "4:30 PM", "DR.FRIDA", "no.73 swey street india",
"RS.710");
insert into appointments values(13, 1033, "KAREN", "STAN", "F", 16, "31-
03-2006", 5795750875,
"17-04-2922", "5:30 PM", "DR.IMMY", "no.44 sancta street india",
"RS.500");
insert into appointments values(14, 1034, "NICHOLAS", "JOSE", "M", 95,
"31-03-1966", 6876096868,
"17-04-2022", "6:00 PM", "DR.MARYAM", "no.86 samuel street, india",
"RS.1900");
insert into appointments values(15, 1035, "LUIS", "BENTLEY", "M", 52, "18-
05-1979", 7507850578,
"17-04-2022", "6:15 PM", "DR.LARRY", "no.99 sann street india",
"RS.400");

SELECT * FROM [appointments];


create table inpatient_details
(s_no int,
id varchar(5) primary key,
first_name varchar(30),
last_name varchar(30),
gender char(1),
age int,
health_issues varchar(150),
medications varchar(150),
major_operations_or_surgeries varchar(100),
minor_operations_or_surgeries varchar(100),
period_of_stay varchar(100));

insert into inpatient_details values(1,1001,'KATHERINE','VALDES','F',34,


'ACUTE APPENDICITIS',
"PIPERACILLIN, CIPROFLOXACIN - FOR TREATING
INFECTION",'APPENDECTOMY','NIL','2 WEEKS');
insert into inpatient_details
values(2,1003,'ANGIE','MARTIN','F',45,'MULTIPLE SCLEROSIS',
"METHYLPREDNISOLONE, COPAXONE",'PLASMAPHERESIS','NIL','NO
APPROXIMATION');
insert into inpatient_details
values(3,1006,'SLINA','GARRY','F',56,'ARTHRITIS',
"PHYSIOTHERAPY - KNEE EXERCISES, KNEE CAP, PAIN KILLERS",'NIL','NIL','2
DAYS');
insert into inpatient_details
values(4,1007,'JELIN','FREDRIK','F',22,'CHICKEN POX',
"ACYCLOVIR, ACITAMINOPHEN",'NIL','NIL','1-3 WEEKS');
insert into inpatient_details values(5,1008,'JULIE','GRIFFIN','F',16,"ULNA,
RADIUS FRACTURE",
'VITAMIN SUPPLEMENTS','NIL','NON-OPERATIVE CAST TREATMENT','NO
STAY - CAST OPERATION FOR 4 - 6 WEEKS');
insert into inpatient_details values(6,1013,'JENNIFER','ALEX','F',66,'LATE
STAGE CANCER',
'CHEMOTHERAPY','WILL DO IF REQUIRED','NIL','UNTIL CHEMO GETS
OVER');
insert into inpatient_details
values(7,1015,'JOBERT','WOODS','M',18,'CONJUNCTIVITIS (PINK EYE)',
"ANTIBIOTICS - MOXIFLACIN, TRIMETHOPRIM",'NIL','NIL','NO STAY');
insert into inpatient_details
values(8,1016,'MICHAEL','THOMAS','M',47,'DIARRHEA',
"ORS, LOPERAMIDE",'NIL','NIL','NO STAY');
insert into inpatient_details
values(9,1017,'LEONARD','LUCAS','M',26,'PSORIASIS',
'HYDROCORTISONE OR HUMIRA (BASED ON RECOVERY)','NIL','NIL','NO
STAY');
insert into inpatient_details
values(10,1019,'HARRY','LUNAS','M',28,'LUPUS ERYTHEMATOSUS',
'ANIFROLUMAB (SAPHNELO)','NIL','NIL','NO STAY');

SELECT * FROM [inpatient_details];

create table hosp_rooms


(s_no int,
room_no int primary key,
block varchar(20),
floor varchar(20),
room_name varchar(50),
fee varchar(50),
equip_availability varhcar(20),
room_timings varchar(10),
room_availability varchar(10));

insert into hosp_rooms values(1, 4523, "a block", "2nd floor",


"Deluxe Suites", "28450/day", "available", "24 hrs", "open");
insert into hosp_rooms values(2, 4564, "a block", "3rd floor",
"Suites", "23500/day", "available", "24 hrs", "open");
insert into hosp_rooms values(3, 3565, "a block", "3rd floor",
"Single Super Deluxe Rooms", "13550/day", "available", "24 hrs", "open");
insert into hosp_rooms values(4, 6754, "a block", "2nd floor",
"Single Deluxe rooms", "11250/day", "available", "24 hrs", "open");
insert into hosp_rooms values(5, 7897, "a block", "2nd floor",
"Single Private Rooms", "9450/day", "available", "24 hrs", "open");
insert into hosp_rooms values(6, 6343, "a block", "2nd floor",
"Double Bed Sharing Rooms (Each Bed)", "5900/day", "available", "24 hrs",
"open");
insert into hosp_rooms values(7, 8968, "a block", "3rd floor",
"Spl. Economy (Four Bedded)", "4400/day", "available", "24 hrs", "open");
insert into hosp_rooms values(8, 8989, "a block", "3rd floor",
"Economy", "3200/day", "available", "24 hrs", "open");
insert into hosp_rooms values(9, 5378, "b block", "1st floor",
"C.T.V.S - ICU", "13250/day", "available", "24 hrs", "open");
insert into hosp_rooms values(10, 5239, "b block", "1st floor",
"CCU", "13250/day", "available", "24 hrs", "open");
insert into hosp_rooms values(11, 4890, "b block", "1st floor",
"MEDICAL ICU", "13250/day", "available", "24 hrs", "open");
insert into hosp_rooms values(12, 4899, "b block", "1st floor",
"NEURO ICU", "13250/day", "available", "24 hrs", "open");
insert into hosp_rooms values(13, 8908, "b block", "1st floor",
"BURN UNIT", "13250/day", "available", "24 hrs", "open");

SELECT * FROM [hosp_rooms]

You might also like