0% found this document useful (0 votes)
48 views5 pages

Isha Ma'Am Hospital Data New

The document contains SQL statements that insert data into various tables related to a hospital database. The tables include departments, doctors, patients, room details, doctor registrations, doctors on call, patient checkups, patient admissions, and patient registrations. Data is inserted about departments, assigned doctors, patient information like name, age, gender, address etc., room details, doctor details, assigned doctors and status of checkups, admissions and registrations for various patients.

Uploaded by

Siddharth Pandey
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)
48 views5 pages

Isha Ma'Am Hospital Data New

The document contains SQL statements that insert data into various tables related to a hospital database. The tables include departments, doctors, patients, room details, doctor registrations, doctors on call, patient checkups, patient admissions, and patient registrations. Data is inserted about departments, assigned doctors, patient information like name, age, gender, address etc., room details, doctor details, assigned doctors and status of checkups, admissions and registrations for various patients.

Uploaded by

Siddharth Pandey
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/ 5

INSERT

into Department
values ('Anaesthesia','Floor 1','Critical Care & Pain Management'),
('Cardiac','Floor 2','Surgery'),
('Diagnostics','Floor 3','Diagnosis'),
('ENT','Floor 4','Medicine'),
('General Surgery','Floor 5','Surgery'),
('Neuro Sciences','Floor 6','Diagnosis with Surgery'),
('Physiotherapy','Floor 7','Critical care & Pain Management'),
('Psychiatry','Floor 8','Diagnosis'),
('Orthopaedic','Floor 9','Critical Care & Pain Management'),
('Pulmonary','Floor 10','Medicine');

==================================================

INSERT
into Doctor values ('DR01','Anaesthesia'),('DR02','Anaesthesia'),
('DC01','Anaesthesia'),('DC02','Anaesthesia'),
('DR03','Cardiac'),
('DR04','Cardiac'),
('DC03','Cardiac'),
('DC04','Cardiac'),
('DR05','Diagnostics'),
('DR06','Diagnostics'),
('DC05','Diagnostics'),
('DC06','Diagnostics'),
('DR07','ENT'),
('DR08','ENT'),
('DC07','ENT'),
('DC08','ENT'),
('DR09','General Surgery'),
('DR10','General Surgery'),
('DC09','General Surgery'),
('DC10','General Surgery'),
('DR11','Neuro Sciences'),
('DR12','Neuro Sciences'),
('DC11','Neuro Sciences'),
('DC12','Neuro Sciences'),
('DR13','Physiotherapy'),
('DR14','Physiotherapy'),
('DC13','Physiotherapy'),
('DC14','Physiotherapy'),
('DR15','Psychiatry'),
('DR16','Psychiatry'),
('DC15','Psychiatry'),
('DC16','Psychiatry'),
('DR17','Orthopaedic'),
('DR18','Orthopaedic'),
('DC17','Orthopaedic'),
('DC18','Orthopaedic'),
('DR19','Pulmonary'),('DR20','Pulmonary'),('DC19','Pulmonary'),
('DC20','Pulmonary');

===========================

INSERT into Patient values


('PT001','AAA',35,'M','Civil Lines','Kanpur',9080706051,'2016-08-01','Cardiac
Problem','DR03','Cardiac');
INSERT into Patient values
('PT002','AAB',40,'F','Kalyanpur','Kanpur',9080706052,'2016-08-02','Physio
Problem','DR13','Physiotherapy'),
('PT003','AAC',45,'M','Parade','Kanpur',9080706053,'2016-08-01','ENT
Problem','DC13','ENT'),
('PT004','AAD',50,'F','Rawatpur','Kanpur',9080706054,'2016-08-02','Diagnostics
Problem','DR05','Diagnostics'),
('PT005','AAE',55,'M','Harjinder Nagar','Kanpur',9080706055,'2016-08-03','Neuro
Problem','DR11','Neuro Sciences'),
('PT006','BAA',35,'M','Civil Lines','Lucknow',9080706061,'2016-08-01','Ortho
Problem','DC17','Orthopaedic'),
('PT007','BAB',40,'F','Charbagh','Lucknow',9080706062,'2016-08-
02','Surgery','DC09','General Surgery'),
('PT008','BAC',45,'M','Alambagh','Lucknow',9080706063,'2016-08-01','ENT
Problem','DC13','ENT'),
('PT009','BAD',50,'F','Gomti Nagar','Lucknow',9080706064,'2016-08-
02','Surgery','DR09','General Surgery'),
('PT010','BAE',55,'M','Hazrat Ganj','Lucknow',9080706065,'2016-08-03','Neuro
Problem','DR11','Neuro Sciences'),
('PT011','CAA',35,'M','Karol Bagh','New Delhi',9080706071,'2016-08-01','Pulmonary
Problem','DR19','Pulmonary'),
('PT012','CAB',40,'F','GTB Nagar','New Delhi',9080706072,'2016-08-
02','Surgery','DC09','General Surgery'),
('PT013','CAC',45,'M','Azad Nagar','New Delhi',9080706073,'2016-08-01','ENT
Problem','DC13','ENT'),
('PT014','CAD',50,'F','Nehru Palace','New Delhi',9080706074,'2016-08-
02','Surgery','DR09','General Surgery'),
('PT015','CAE',55,'M','Sarojini Nagar','New Delhi',9080706075,'2016-08-03','Neuro
Problem','DR11','Neuro Sciences'),
('PT016','DAA',35,'M','Civil Lines','Allahabad',9080706081,'2016-08-01','Pulmonary
Problem','DR19','Pulmonary'),
('PT017','DAB',40,'F','MG Road','Allahabad',9080706082,'2016-08-
02','Surgery','DR09','General Surgery'),
('PT018','DAC',45,'M','Arya Nagar','Allahabad',9080706083,'2016-08-02','Ortho
Problem','DR18','Orthopaedic'),
('PT019','DAD',50,'F','Azad Nagar','Allahabad',9080706084,'2016-08-
03','Surgery','DR10','General Surgery') ,
('PT020','DAE',55,'M','Cantonment','Allahabad',9080706085,'2016-08-03','Neuro
Problem','DC12','Neuro Sciences');

=====================================================
INSERT
into ROOM_DETAILS values (101,'P AC','N','PT001',5000);
insert into ROOM_DETAILS values
(102,'P AC','N','PT003',5000),
(103,'P AC','N','PT010',5000),
(104,'P AC','N','PT019',5000),
(105,'P AC','N','PT020',5000),
(201,'P NON-AC','N','PT007',3000),
(202,'P NON-AC','N','PT005',3000);
insert into ROOM_DETAILS values
(203,'P NON-AC','Y',NULL,3000);

insert into ROOM_DETAILS values


(204,'P NON-AC','Y',NULL,3000),
(205,'P NON-AC','Y',NULL,3000),
(301,'G AC','N','PT009',3000),
(302,'G AC','N','PT012',3000),
(303,'G AC','N','PT014',3000),
(304,'G AC','Y',NULL,3000),
(305,'G AC','Y',NULL,3000),
(401,'G NON-AC','Y','PT011',2000),
(402,'G NON-AC','Y','PT017',2000),
(403,'G NON-AC','Y',NULL,2000),
(404,'G NON-AC','Y',NULL,2000),
(405,'G NON-AC','Y',NULL,2000);

===================================================

INSERT
into DOC_REG values ('DR01','Dr. A','MD',80000,8090607011,'2004-01-01');

INSERT
into DOC_REG values
('DR02','Dr. B','MD',60000,8090607012,'2007-03-01'),
('DR03','Dr. C','MBBS',100000,8090607013,'2008-05-01'),
('DR04','Dr. D','MBBS',120000,8090607014,'2010-07-01'),
('DR05','Dr. E','MD',50000,8090607015,'2006-09-01'),
('DR06','Dr. F','MD',60000,8090607016,'2012-11-01'),
('DR07','Dr. G','MBBS',80000,8090607017,'2010-02-01'),
('DR08','Dr. H','MBBS',90000,8090607018,'2013-04-01'),
('DR09','Dr. I','MBBS',120000,8090607019,'2010-06-01'),
('DR10','Dr. J','MBBS',150000,8090607020,'2015-08-01'),
('DR11','Dr. K','MBBS',140000,8090607031,'2012-10-01'),
('DR12','Dr. L','MD',120000,8090607032,'2010-12-01'),
('DR13','Dr. M','MBBS',80000,8090607033,'2011-11-01'),
('DR14','Dr. N','MD',60000,8090607034,'2014-08-01'),
('DR15','Dr. O','MD',60000,8090607035,'2015-4-01'),
('DR16','Dr. P','MD',60000,8090607036,'2010-01-01'),
('DR17','Dr. Q','MBBS',90000,8090607037,'2007-03-01'),
('DR18','Dr. R','MD',70000,8090607038,'2009-06-01'),
('DR19','Dr. S','MD',650000,8090607039,'2010-09-01'),
('DR20','Dr. T','MD',70000,8090607040,'2012-12-01');

==================================================

insert into DOC_ON_CALL values ('DC01','Dr. AT','MD',800,8090607051),


('DC02','Dr. BS','MD',600,8090607052),
('DC03','Dr. CR','MBBS',1000,8090607053),
('DC04','Dr. DQ','MBBS',1200,8090607054),
('DC05','Dr. EP','MD',500,8090607055),
('DC06','Dr. FO','MD',600,8090607056),
('DC07','Dr. GN','MBBS',800,8090607057),
('DC08','Dr. HM','MBBS',900,8090607058),
('DC09','Dr. IL','MBBS',1200,8090607059),
('DC10','Dr. JK','MBBS',1500,8090607060),
('DC11','Dr. KJ','MBBS',1400,8090607081),
('DC12','Dr. LI','MD',1200,8090607082),
('DC13','Dr. MH','MBBS',800,8090607083),
('DC14','Dr. NG','MD',600,8090607084),
('DC15','Dr. OF','MD',600,8090607085),
('DC16','Dr. PE','MD',600,8090607086),
('DC17','Dr. QD','MBBS',900,8090607087),
('DC18','Dr. RC','MD',700,8090607088),
('DC19','Dr. SB','MD',500,8090607089),
('DC20','Dr. TA','MD',600,8090607090);
===========================================

INSERT
into Pat_checkup
values ('PT001','DR03','Cardiac Problem','Referred for Operation','Preliminary'),
('PT002','DR13','Physio Problem','Regular Patient','Regular Treatment'),
('PT003','DC13','ENT Problem','Admitted','Adviced Treatment'),
('PT004','DR05','Diagnostics Problem','Regular Patient','Regular Treatment'),
('PT005','DR11','Neuro Problem','Referred for Operation','Preliminary'),
('PT006','DC17','Ortho Problem','Regular Patient','Regular Treatment'),
('PT007','DC09','Surgery','Referred for Operation','Preliminary'),
('PT008','DC13','ENT Problem','Regular Patient','Regular Treatment'),
('PT009','DR09','Surgery','Referred for Operation','Preliminary'),
('PT010','DR11','Neuro Problem','Admitted','Adviced Treatment'),
('PT011','DR19','Pulmonary Problem','Admitted','Adviced Treatment'),
('PT012','DC09','Surgery','Referred for Operation','Preliminary'),
('PT013','DC13','ENT Problem','Regular Patient','Regular Treatment'),
('PT014','DR09','Surgery','Referred for Operation','Preliminary'),
('PT015','DR11','Neuro Problem','Regular Patient','Regular Treatment'),
('PT016','DR19','Pulmonary Problem','Regular Patient','Regular Treatment'),
('PT017','DR09','Surgery','Referred for Operation','Preliminary'),
('PT018','DR18','Ortho Problem','Regular Patient','Regular Treatment'),
('PT019','DR10','Surgery','Referred for Operation','Preliminary'),
('PT020','DC12','Neuro Problem','Admitted','Adviced Treatment');

====================================================================

INSERT
into Pat_Admit values
('PT001','DR03','Cardiac Problem','Referred for Operation','Preliminary','2016-05-
11',101),
('PT003','DC13','ENT Problem','Admitted','Adviced Treatment','2016-05-11',102),
('PT005','DR11','Neuro Problem','Referred for Operation','Preliminary','2016-05-
08',202),
('PT007','DC09','Surgery','Referred for Operation','Preliminary','2016-05-
09',201),
('PT009','DR09','Surgery','Referred for Operation','Preliminary','2016-05-09',301),
('PT010','DR11','Neuro Problem','Admitted','Adviced Treatment','2016-05-03',103),
('PT011','DR19','Pulmonary Problem','Admitted','Adviced Treatment','2016-05-
03',401),
('PT012','DC09','Surgery','Referred for Operation','Preliminary','2016-05-
01',302),
('PT014','DR09','Surgery','Referred for Operation','Preliminary','2016-05-
03',303),
('PT017','DR09','Surgery','Referred for Operation','Preliminary','2016-05-
01',402),
('PT019','DR10','Surgery','Referred for Operation','Preliminary','2016-05-03',104),
('PT020','DC12','Neuro Problem','Admitted','Adviced Treatment','2016-05-03',105);

====================================

INSERT
into Pat_Reg values ('PT001','2016-05-02','Cardiac
Problem','Preliminary','Regular'),
('PT002','2016-03-03','Physio Problem','Regular Treatment','Basic'),
('PT003','2016-02-12','ENT Problem','Adviced Treatment','Basic'),
('PT004','2016-04-05','Diagnostics Problem','Regular Treatment','Basic'),
('PT005','2016-04-11','Neuro Problem','Preliminary','Regular'),
('PT006','2016-05-01','Ortho Problem','Regular Treatment','Regular'),
('PT007','2016-05-03','Surgery','Preliminary','Cured'),
('PT008','2016-04-11','ENT Problem','Regular Treatment','Regular'),
('PT009','2016-05-12','Surgery','Preliminary','Cured'),
('PT010','2016-05-11','Neuro Problem','Adviced Treatment','Regular'),
('PT011','2016-02-01','Pulmonary Problem','Adviced Treatment','Basic'),
('PT012','2016-05-03','Surgery','Preliminary','Cured'),
('PT013','2016-04-01','ENT Problem','Regular Treatment','Basic'),
('PT014','2016-05-07','Surgery','Preliminary','Cured'),
('PT015','2016-03-01','Neuro Problem','Regular Treatment','Regular'),
('PT016','2016-04-09','Pulmonary Problem','Regular Treatment','Basic'),
('PT017','2016-05-02','Surgery','Preliminary','Cured'),
('PT018','2016-05-01','Ortho Problem','Regular Treatment','Regular'),
('PT019','2016-05-01','Surgery','Preliminary','Cured'),
('PT020','2016-06-02','Neuro Problem','Adviced Treatment','Regular');

==========================
INSERT
into Pat_Oprtn values ('PT001','DR03','2016-05-03','2016-06-01','Major','OT 1'),
('PT005','DR11','2016-05-03','2016-06-01','Major','OT 2'),
('PT007','DC09','2016-05-10','2016-06-02','Minor','OT 1'),
('PT009','DR09','2016-05-09','2016-06-03','Minor','OT 2'),
('PT012','DC09','2016-05-01','2016-06-02','Minor','OT 1'),
('PT014','DR09','2016-05-03','2016-06-03','Major','OT 2'),
('PT017','DR09','2016-05-01','2016-06-03','Minor','OT 1'),
('PT019','DR10','2016-05-03','2016-06-03','Major','OT 2');
=====================================

INSERT
into Pat_Dischrg values ('PT001','DR03','Cardiac Problem','Regular',154165,'2016-
06-06'),
('PT003','DC13','ENT Problem','Short Term',52304,'2016-06-04'),
('PT005','DR11','Neuro Problem','Long Term',184234,'2016-06-05'),
('PT007','DC09','Surgery','Short Term',41652,'2016-06-05'),
('PT009','DR09','Surgery','Regular',35485,'2016-06-03'),
('PT010','DR11','Neuro Problem','Regular',166168,'2016-06-07'),
('PT011','DR19','Pulmonary Problem','Long Term',55262,'2016-06-03'),
('PT012','DC09','Surgery','Short Term',54316,'2016-06-04'),
('PT014','DR09','Surgery','Long Term',124285,'2016-06-08'),
('PT017','DR09','Surgery','Short Term',34165,'2016-06-06'),
('PT019','DR10','Surgery','Long term',24165,'2016-06-02'),
('PT020','DC12','Neuro Problem','Regular',124784,'2016-06-04');

You might also like