0% found this document useful (0 votes)
52 views3 pages

Use Insert Into

The document contains SQL statements that insert data into multiple tables related to a pharmacy database. The tables include information about the pharmacy, inventory, products, providers, product types, pharmacists, and users. Data is added to each table through individual INSERT statements.

Uploaded by

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

Use Insert Into

The document contains SQL statements that insert data into multiple tables related to a pharmacy database. The tables include information about the pharmacy, inventory, products, providers, product types, pharmacists, and users. Data is added to each table through individual INSERT statements.

Uploaded by

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

use bdfarmacia

INSERT INTO FARMACIA


(COD_FARMACIA,NOM_FARMACIA,DIR_FARMACIA,TEL_FARMACIA)

VALUES ('2','EBPOTUZCO','Jr.Progreso 385','044436281')

select * from farmacia

INSERT INTO INVENTARIO


(COD_INVENTARIO, COD_PRODUCTOS,COD_PROVEEDOR,COD_FARMACIA,PRECIO,CANTIDAD)

VALUES ('2000','51','1','2', '1.20','200'),


('2010','52','1','2', '1.00','370'),
('2020','53','1','2', '0.90','500'),
('2030','54','1','2', '1.10','280'),
('2040','55','1','2', '1.40','450'),
('2050','56','1','2', '0.30','430'),
('2060','57','1','2', '0.50','650'),
('2070','58','1','2', '0.20','900'),
('2080','59','1','2', '0.30','320'),
('2090','60','2','2', '0.20','650'),
('2100','61','2','2', '1.20','780'),
('2110','62','2','2', '1.10','320'),
('2120','63','2','2', '1.30','200'),
('2130','64','2','2', '0.20','550'),
('2140','65','2','2', '1.20','490'),
('2150','66','2','2', '0.80','780'),
('2160','67','2','2', '0.70','560'),
('2170','68','2','2', '1.00','800'),
('2180','69','2','2', '0.70','440'),
('2190','70','2','2', '0.40','590'),
('2200','71','3','2', '0.30','280'),
('2210','72','3','2', '1.20','540'),
('2220','73','3','2', '0.80','870'),
('2230','74','3','2', '0.90','660'),
('2240','75','3','2', '1.00','880'),
('2250','76','3','2', '0.50','210'),
('2260','77','3','2', '0.70','980'),
('2270','78','3','2', '1.00','770'),
('2280','79','3','2', '0.30','520'),
('2290','80','3','2', '0.60','700')

SELECT * FROM INVENTARIO

INSERT INTO PRODUCTOS


(COD_TIPO_PRODUCTO,COD_PRODUCTO,NOM_PRODUCTO,FVE_PRODUCTO,CAN_PRODUCTO)

VALUES ('12','51','Ácido acetilsalícilico','2018/11/07','200'),


('12','52','Amitriptilina clorhidrato','2018/10/12','370'),
('12','53','Amlodipino','2018/09/15','500'),
('14','54','Atenolol','2018/12/26','280'),
('12','55','Atorvastatina','2018/11/27','450'),
('14','56','Bisoprolol fumarato','2018/04/06','430'),
('12','57','Captopril','2018/05/04','650'),
('12','58','Paracetamol','2018/09/08','900'),
('14','59','Carbamazepina','2018/05/02','320'),
('13','60','Carvedilol','2018/11/10','650'),
('12','61','Diltiazem clorhidrato','2018/12/15','780'),
('12','62','Enalapril maleato','2018/11/01','320'),
('14','63','Espironolactona','2018/01/05','200'),
('12','64','Furosemida','2018/04/09','550'),
('12','65','Gabapentina','2018/03/05','490'),
('14','66','Gemfibrozilo','2018/03/15','780'),
('12','67','Glibenclamida','2018/12/17','560'),
('12','68','Hidroclorotiazida','2018/08/18','800'),
('12','69','Losartán potásico','2018/04/29','440'),
('12','70','Metformina clorhidrato','2018/06/23','590'),
('12','71','Metildopa','2018/06/30','280'),
('13','72','Insulina humana','2018/05/27','540'),
('13','73','Nifedipino','2018/08/25','870'),
('14','74','Propranolol clorhidrato','2018/05/29','660'),
('13','75','Insulina isofana humana ','2018/09/11','880'),
('12','76','Simvastatina ','2018/09/26','210'),
('12','77','Amoxicilina','2018/01/27','980'),
('14','78','Tramadol clorhidrato ','2018/07/16','770'),
('13','79','Verapamilo clorhidrato ','2018/07/07','520'),
('12','80','Diclofenaco','2018/07/29','700')

SELECT * FROM PRODUCTOS

INSERT INTO PROVEEDOR

(COD_TIPO_IDENTIFICACION,COD_PROVEEDOR,NOM_PROVEEDOR,DIR_PROVEEDOR,TEL_PROVEEDOR,COR
_PROVEEDOR)

VALUES ('1001','1','PERULAB','Av Paso de Los Andes


287','015136666','www.perulab.com'),
('1004','2','MINSALAB','Av. Gregorio Escobedo
650','012754951','www.minsalab.com'),
('1005','3','AGBLAB','Av Horacio Urteaga
1581','012220550','www.agblab.com')

SELECT * FROM PROVEEDOR

INSERT INTO TIPO_IDENTIFICACION


(COD_TIPO_IDENTIFICACION,NOMBRE)

VALUES ('1001', 'PERULAB'),


('1004', 'MINSALAB'),
('1005', 'AGBLAB')

SELECT * FROM TIPO_IDENTIFICACION

INSERT INTO TIPO_PRODUCTO


(COD_TIPO_PRODUCTO,NOM_TIPO_PRODUCTO)

VALUES ('12', 'Pastillas'),


('13', 'Inyectables'),
('14', 'Jarabe')
SELECT * FROM TIPO_PRODUCTO

INSERT INTO FARMACEUTICO

(COD_FARMACEUTICO,NOM_FARMACEUTICO,APE_FARMACEUTICO,DIR_FARMACEUTICO,TEL_FARMACEUTIC
O,GEN_FARMACEUTICO,FNA_FARMACEUTICO)

VALUES ('555', 'JOSE', 'MORENO PAZ', 'San Antonio 234', '941189933', 'M',
'18/02/1980'),
('444', 'CARLOS', 'CRUZ TORRES', 'Independencia 345', '949815240', 'M',
'15/06/1975'),
('777', 'FATIMA', 'ALVA CARRERA', 'Sta. Rosa 876', '987700670', 'F',
'12/12/1982'),
('888', 'MARIA', 'BERRU VASQUEZ', 'La Loma 965', '967345217', 'F',
'13/02/1979')

SELECT * FROM FARMACEUTICO

INSERT INTO USUARIOS


(NOM_USUARIO,CLA_USUARIO)

VALUES ('JOSE', '681870'),


('CARLOS', '872461'),
('MARIA', '342761'),
('FATIMA', '932654')

SELECT * FROM USUARIOS

You might also like