SlideShare a Scribd company logo
1 of 7
Download to read offline
Creación de tablas


DROP TABLE IF EXISTS `Emleados`;

CREATE TABLE `Emleados` (
  `ID_Empleado` int(4) NOT NULL,
  `Nombre_Empleado` char(50) NOT NULL,
  `Apellido_Paterno` char(20) NOT NULL,
  `Apellido_Materno` char(20) NOT NULL,
  `Puesto` char(20) NOT NULL,
  `Area` varchar(10) NOT NULL,
  `F_Ingreso` date NOT NULL,
  `Telefono` int(13) NOT NULL,
  `Direccion` char(100) NOT NULL,
  `Eficiencia` char(10) DEFAULT NULL,
  PRIMARY KEY (`ID_Empleado`)
)


DROP TABLE IF EXISTS `Anuncio`;

CREATE TABLE `Anuncio` (
  `ID_Anuncio` int(4) NOT NULL,
  `ID_Pedido` int(10) NOT NULL,
  `Archivo` char(20) NOT NULL,
  PRIMARY KEY (`ID_Anuncio`)
)


DROP TABLE IF EXISTS `Areas`;

CREATE TABLE `Areas` (
  `ID_Area` int(4) NOT NULL,
  `Area` varchar(10) NOT NULL,
  PRIMARY KEY (`ID_Area`)
)



DROP TABLE IF EXISTS `Cobros`;

CREATE TABLE `Cobros` (
  `ID_Cobro` int(4) NOT NULL,
  `ID_Pedido` int(4) NOT NULL,
  `Pago_No` int(2) DEFAULT NULL,
  `Fe_Pago` datetime DEFAULT NULL,
  `Fe_Pro_Pago` datetime DEFAULT NULL,
  `Abono` int(10) NOT NULL,
  `Resta` int(10) NOT NULL,
  PRIMARY KEY (`ID_Cobro`),
  KEY `ID_Pedido` (`ID_Pedido`)
)
Creación de tablas


DROP TABLE IF EXISTS `Tamano`;

CREATE TABLE `Tamano` (
  `ID_Tamano` int(4) NOT NULL,
  `Tamano` char(10) NOT NULL,
  PRIMARY KEY (`ID_Tamano`)
)




DROP TABLE IF EXISTS `Cliente`;

CREATE TABLE `Cliente` (
  `ID_Cliente` int(4) NOT NULL,
  `Nombre_Cliente` char(20) NOT NULL,
  `Apellido_Paterno` char(20) NOT NULL,
  `Apellido_Materno` char(20) DEFAULT
NULL,
  `Direccion` char(100) NOT NULL,
  `Nombre_Organizacion` char(50) NOT
NULL,
  `Dir_Org` char(100) DEFAULT NULL,
  `Telefono_Cli` int(13) DEFAULT NULL,
  `e_mail` char(50) DEFAULT NULL,
  `RFC` char(13) DEFAULT NULL,
  PRIMARY KEY (`ID_Cliente`)
)




DROP TABLE IF EXISTS `Puestos`;

CREATE TABLE `Puestos` (
  `ID_Puesto` int(4) NOT NULL,
  `Puesto` char(20) NOT NULL,
  PRIMARY KEY (`ID_Puesto`)
)
Creación de tablas


DROP TABLE IF EXISTS `Eficiencia`;

CREATE TABLE `Eficiencia` (
  `ID_Eficiencia` int(4) NOT NULL,
  `Nivel` char(10) NOT NULL,
  PRIMARY KEY (`ID_Eficiencia`)
)



DROP TABLE IF EXISTS `Imprenta`;

CREATE TABLE `Imprenta` (
  `ID_Envio` int(4) NOT NULL,
  `ID_Revista` int(4) NOT NULL,
  `Fe_Envio` date NOT NULL,
  `Fe_Recoger` date NOT NULL,
  `ID_Empleado` int(4) DEFAULT NULL,
  PRIMARY KEY (`ID_Envio`)
)




DROP TABLE IF EXISTS `Pedido`;

CREATE TABLE `Pedido` (
  `ID_Pedido` int(10) NOT NULL,
  `ID_Cliente` int(12) NOT NULL,
  `F_Pedido` datetime NOT NULL,
  `Meses` int(2) NOT NULL,
  `Ejemplar` int(4) NOT NULL,
  `Tamano` int(4) NOT NULL,
  `Total_Pagar` float DEFAULT NULL,
  `Forma_Pago` char(8) NOT NULL,
  `Pago_Inicial` int(10) NOT NULL,
  `Debe` int(10) NOT NULL,
  `Archivo` char(20) DEFAULT NULL,
  PRIMARY KEY (`ID_Pedido`),
  KEY `Forma_Pago` (`Forma_Pago`),
  KEY `ID_Cliente` (`ID_Cliente`)
)
Creación de tablas



DROP TABLE IF EXISTS `Revista`;

CREATE TABLE `Revista` (
  `ID_Revista` int(4) NOT NULL,
  `Ejemplar` int(4) NOT NULL,
  `Archivo` char(10) NOT NULL,
  PRIMARY KEY (`ID_Revista`)
)


DROP TABLE IF EXISTS `Tipo_Pago`;

CREATE TABLE `Tipo_Pago` (
  `ID_TipoPago` char(4) NOT NULL,
  `Forma_Pago` char(8) DEFAULT NULL,
  PRIMARY KEY (`ID_TipoPago`)
) ENGINE=MyISAM DEFAULT
CHARSET=latin1;
Insertar datos en la tabla




insert into `Cobros` values('700','4001','1','2009-03-14 00:00:00','2009-04-14
00:00:00','400','700'),
 ('702','4001','2','2009-04-14 00:00:00','2009-05-14 00:03:11','300','400'),
 ('703','4001','3','2009-05-14 00:00:00',null,'400','0'),
 ('701','4002','1','2009-03-05 00:09:34','2009-04-05 00:09:52','1200','8606'),
 ('704','4002','2','2009-04-05 00:09:52','2009-05-05 00:13:27','3000','5606'),
 ('705','4002','3','2009-05-05 00:13:27','2009-06-05 00:15:44','700','4906'),
 ('706','4002','4','2009-06-05 00:15:44','2009-07-05 00:18:24','900','4006'),
 ('707','4002','5','2009-07-05 00:18:24','2009-08-05 00:18:24','1000','3006'),
 ('708','4002','6','2009-08-05 00:18:24','2009-09-05 00:18:24','600','2406'),
 ('709','4002','7','2009-09-05 00:18:24','2009-10-05 00:18:24','1400','1006'),
 ('710','4003','8','2009-11-05 00:18:24',null,'1006','0'),
 ('711','4003','1','2009-04-16 00:31:06','2009-05-16 00:31:06','300','702'),
 ('712','4003','2','2009-05-16 00:31:06','2009-06-16 00:31:06','300','402'),
 ('713','4003','3','2009-06-16 00:31:06',null,'402','0'),
 ('714','4005','1','2009-04-17 00:37:09','2009-05-17 00:37:09','500','500'),
 ('715','4005','2','2009-05-17 00:37:09',null,'500','0'),
 ('716','4006','1','2009-05-22 00:42:07','2009-06-22 00:42:07','200','800'),
 ('717','4006','2','2009-06-22 00:42:07','2009-07-22 00:42:07','400','400'),
 ('718','4006','3','2009-07-22 00:42:07','2009-08-22 00:42:07','200','200'),
 ('719','4006','4','2009-08-22 00:42:07','0000-00-00 00:00:00','200','0'),
 ('720','4007','1','2009-06-04 00:46:40','2009-07-04 00:46:40','400','902'),
('721','4007','2','2009-07-04 00:46:40','2009-08-04 00:46:40','400','502'),
('722','4007','3','2009-08-04 00:46:40',null,'502','0'),
('723','4010','1','2009-06-18 00:49:37','2009-07-18 00:49:37','1000','4904'),
('724','4010','2','2009-07-18 00:49:37','2009-08-18 00:49:37','1000','3904'),
('725','4010','3','2009-08-18 00:49:37','2009-09-18 00:49:37','1200','2704'),
('726','4010','4','2009-09-18 00:49:37','2009-10-18 00:49:37','500','2204'),
('727','4010','5','2009-10-18 00:49:37','2009-11-18 00:49:37','1000','1204'),
('728','4010','6','2009-11-16 00:49:37',null,'1204','0'),
('729','4011','1','2009-05-04 00:54:44','2009-06-04 00:54:44','300','1200'),
('730','4011','2','2009-06-04 00:54:44','2009-07-04 00:54:44','300','900'),
('731','4011','3','2009-07-04 00:54:44','2009-08-04 00:54:44','300','600'),
('732','4011','4','2009-08-04 00:54:44',null,'600','0'),
('733','4013','1','2009-07-16 00:56:39','2009-08-16 00:56:39','300','1353'),
('734','4013','2','2009-08-16 00:56:39','2009-09-16 00:56:39','600','753'),
('735','4013','3','2009-09-16 00:56:39','2009-10-16 00:56:39','500','253'),
('736','4013','4','2009-10-16 00:56:39',null,'253','0'),
('737','4014','1','2009-09-14 01:00:43','2009-10-14 01:00:43','1000','4105'),
('738','4014','2','2009-10-14 01:00:43','2009-11-14 01:00:43','1300','2805'),
('739','4014','3','2009-11-14 01:00:43',null,'0','2805'),
('740','4015','1','2009-10-17 01:12:02','2009-11-17 01:12:56','300','250'),
('741','4016','1','2009-11-11 01:14:35','2009-12-17 01:15:16','300','400'),
('742','4015','2','2009-11-17 01:12:56',null,'0','250');



insert into `Eficiencia` values('9001','Exelente'),
 ('9002','Bueno'),
 ('9003','Optimo'),
 ('9004','Regular'),
 ('9005','Malo'),
 ('9006','Sin Evalua');


insert into `Imprenta` values('7001','600','2009-11-23','2009-12-01','8001');




insert into `Pedido` values('4001','2','2009-02-14
21:54:51','6','603','1001','1500','2002','400','1100',null),
 ('4002','3','2009-02-05 22:12:07','11','603','1004','11005.5','2002','1200','9806',null),
 ('4003','4','2009-03-16 22:22:19','3','604','1002','1351.5','2002','350','1002',null),
 ('4004','5','2009-03-19 22:25:29','2','604','1001','0','2003','0','0',null),
 ('4005','6','2009-03-07 22:43:14','5','604','1001','1250','2002','250','1000',null),
 ('4006','7','2009-04-01 22:43:32','6','605','1001','1500','2002','500','1000',null),
 ('4007','8','2009-05-04 22:43:54','3','606','1003','2101.5','2002','800','1302',null),
 ('4008','9','2009-05-13 22:44:19','4','606','1001','0','2003','0','0',null),
 ('4009','10','2009-05-15 22:44:28','2','606','1004','2001','2001','2001','0',null),
 ('4010','11','2009-05-18 22:45:44','7','606','1004','7003.5','2002','1100','5904',null),
 ('4011','12','2009-06-04 22:45:58','8','607','1001','2000','2002','500','1500',null),
 ('4012','13','2009-06-17 22:46:09','6','607','1002','0','2003','0','0',null),
 ('4013','14','2009-07-16 22:46:23','5','608','1002','2252.5','2002','600','1653',null),
('4014','15','2009-08-17 22:46:43','9','609','1003','6304.5','2002','1200','5105',null),
('4015','16','2009-09-17 01:07:33','3','610','1001','750','2002','200','550',null),
('4016','17','2009-10-11 01:07:49','4','611','1001','1000','2002','300','700',null),
('4017','18','2009-11-13 01:07:56','5','612','1001','1250','2002','400','850',null);




insert into Puestos values
 ('3001','Fotografo'),
 ('3002','Ejecutivo de Ventas'),
 ('3003','Recepcionista'),
 ('3004','Escritor'),
 ('3005','Disenador Grafico'),
 ('3006','Repartidor'),
 ('3007','Coordinador de Publi',),
 ('3008','Director General'),
 ('3009','Admon Y Finanzas');

insert into `Revista` values('600','11','c:/revista'),
 ('601','1','c:/revista'),
 ('602','2','c:/revista'),
 ('603','3','c:/revista'),
 ('604','4','c:/revista'),
 ('605','5','c:/revista'),
 ('606','6','c:/revista'),
 ('607','7','c:/revista'),
 ('608','8','c:/revista'),
 ('609','9','c:/revista'),
 ('610','10','c:/revista'),
 ('611','11','c:/revista'),
 ('612','12','c:/revista'),
 ('613','13','c:/revista'),
 ('614','14','c:/revista'),
 ('615','15','c:/revista');


insert into `Tamano` values('1001','1 Cuarto'),
 ('1002','1/2 Pagina'),
 ('1003','3 Cuartos'),
 ('1004','1 Pagina');



insert into `Tipo_Pago` values('2001','Contado'),
 ('2002','Credito'),
 ('2003','Cortecia');

SET FOREIGN_KEY_CHECKS = 1;

More Related Content

What's hot

Ciąg dalszy nastąpi - o wielowątkowości, Projekcie Loom i kotlinowych Korutynach
Ciąg dalszy nastąpi - o wielowątkowości, Projekcie Loom i kotlinowych KorutynachCiąg dalszy nastąpi - o wielowątkowości, Projekcie Loom i kotlinowych Korutynach
Ciąg dalszy nastąpi - o wielowątkowości, Projekcie Loom i kotlinowych KorutynachArtur Skowroński
 
To Be Continued - multithreading with Project Loom and Kotlin's Coroutines
To Be Continued - multithreading with Project Loom and Kotlin's CoroutinesTo Be Continued - multithreading with Project Loom and Kotlin's Coroutines
To Be Continued - multithreading with Project Loom and Kotlin's CoroutinesArtur Skowroński
 
SQL Database Design & Querying
SQL Database Design & QueryingSQL Database Design & Querying
SQL Database Design & QueryingCobain Schofield
 
Everything you always wanted to know about forms* *but were afraid to ask
Everything you always wanted to know about forms* *but were afraid to askEverything you always wanted to know about forms* *but were afraid to ask
Everything you always wanted to know about forms* *but were afraid to askAndrea Giuliano
 
Igniting a New Day: Erik Hansen
Igniting a New Day: Erik HansenIgniting a New Day: Erik Hansen
Igniting a New Day: Erik HansenDay Software
 
Data Structures Lab
Data Structures LabData Structures Lab
Data Structures LabNeil Mathew
 
C I E N C I A P A R A F I C A R R I C O
C I E N C I A  P A R A  F I C A R  R I C OC I E N C I A  P A R A  F I C A R  R I C O
C I E N C I A P A R A F I C A R R I C OSGC
 
SQL-RDBMS Queries and Question Bank
SQL-RDBMS Queries and Question BankSQL-RDBMS Queries and Question Bank
SQL-RDBMS Queries and Question BankMd Mudassir
 
Basic Sql Handouts
Basic Sql HandoutsBasic Sql Handouts
Basic Sql Handoutsjhe04
 
To be Continued - multithreading with Project Loom and Kotlin's Coroutines
To be Continued - multithreading with Project Loom and Kotlin's CoroutinesTo be Continued - multithreading with Project Loom and Kotlin's Coroutines
To be Continued - multithreading with Project Loom and Kotlin's CoroutinesArtur Skowroński
 

What's hot (17)

Ciąg dalszy nastąpi - o wielowątkowości, Projekcie Loom i kotlinowych Korutynach
Ciąg dalszy nastąpi - o wielowątkowości, Projekcie Loom i kotlinowych KorutynachCiąg dalszy nastąpi - o wielowątkowości, Projekcie Loom i kotlinowych Korutynach
Ciąg dalszy nastąpi - o wielowątkowości, Projekcie Loom i kotlinowych Korutynach
 
To Be Continued - multithreading with Project Loom and Kotlin's Coroutines
To Be Continued - multithreading with Project Loom and Kotlin's CoroutinesTo Be Continued - multithreading with Project Loom and Kotlin's Coroutines
To Be Continued - multithreading with Project Loom and Kotlin's Coroutines
 
Leveraging Symfony2 Forms
Leveraging Symfony2 FormsLeveraging Symfony2 Forms
Leveraging Symfony2 Forms
 
SQL Database Design & Querying
SQL Database Design & QueryingSQL Database Design & Querying
SQL Database Design & Querying
 
Everything you always wanted to know about forms* *but were afraid to ask
Everything you always wanted to know about forms* *but were afraid to askEverything you always wanted to know about forms* *but were afraid to ask
Everything you always wanted to know about forms* *but were afraid to ask
 
Sql commands
Sql commandsSql commands
Sql commands
 
Hop ngu MIP
Hop ngu MIPHop ngu MIP
Hop ngu MIP
 
Igniting a New Day: Erik Hansen
Igniting a New Day: Erik HansenIgniting a New Day: Erik Hansen
Igniting a New Day: Erik Hansen
 
SQLQuery
SQLQuerySQLQuery
SQLQuery
 
Data Structures Lab
Data Structures LabData Structures Lab
Data Structures Lab
 
Sql query [select, sub] 4
Sql query [select, sub] 4Sql query [select, sub] 4
Sql query [select, sub] 4
 
C I E N C I A P A R A F I C A R R I C O
C I E N C I A  P A R A  F I C A R  R I C OC I E N C I A  P A R A  F I C A R  R I C O
C I E N C I A P A R A F I C A R R I C O
 
ABAP Advanced List
ABAP Advanced ListABAP Advanced List
ABAP Advanced List
 
SQL-RDBMS Queries and Question Bank
SQL-RDBMS Queries and Question BankSQL-RDBMS Queries and Question Bank
SQL-RDBMS Queries and Question Bank
 
Basic Sql Handouts
Basic Sql HandoutsBasic Sql Handouts
Basic Sql Handouts
 
The provision of the caller to Allah
The provision of the caller to AllahThe provision of the caller to Allah
The provision of the caller to Allah
 
To be Continued - multithreading with Project Loom and Kotlin's Coroutines
To be Continued - multithreading with Project Loom and Kotlin's CoroutinesTo be Continued - multithreading with Project Loom and Kotlin's Coroutines
To be Continued - multithreading with Project Loom and Kotlin's Coroutines
 

Viewers also liked

Tegometall Shelving
Tegometall ShelvingTegometall Shelving
Tegometall ShelvingShelving50
 
Artis Overview
Artis OverviewArtis Overview
Artis Overviewbrendleyk
 
Using blurred images to assess damage in bridge structures?
Using blurred images to assess damage in bridge structures?Using blurred images to assess damage in bridge structures?
Using blurred images to assess damage in bridge structures? Alessandro Palmeri
 
Toward overcoming the concept of effective stiffness and damping in the dynam...
Toward overcoming the concept of effective stiffness and damping in the dynam...Toward overcoming the concept of effective stiffness and damping in the dynam...
Toward overcoming the concept of effective stiffness and damping in the dynam...Alessandro Palmeri
 
Failure of slender and stocky columns (2nd year)
Failure of slender and stocky columns (2nd year)Failure of slender and stocky columns (2nd year)
Failure of slender and stocky columns (2nd year)Alessandro Palmeri
 
Spectrum-Compliant Accelerograms through Harmonic Wavelet Transform
Spectrum-Compliant Accelerograms through Harmonic Wavelet TransformSpectrum-Compliant Accelerograms through Harmonic Wavelet Transform
Spectrum-Compliant Accelerograms through Harmonic Wavelet TransformAlessandro Palmeri
 
Structural Mechanics: Deflections of Beams in Bending
Structural Mechanics: Deflections of Beams in BendingStructural Mechanics: Deflections of Beams in Bending
Structural Mechanics: Deflections of Beams in BendingAlessandro Palmeri
 
Structural Mechanics: Shear stress in Beams (1st-Year)
Structural Mechanics: Shear stress in Beams (1st-Year)Structural Mechanics: Shear stress in Beams (1st-Year)
Structural Mechanics: Shear stress in Beams (1st-Year)Alessandro Palmeri
 
agenda local colaborativa pela retoma
agenda local colaborativa pela retomaagenda local colaborativa pela retoma
agenda local colaborativa pela retomaJosé Carlos Mota
 
Cultura clàssica 3r ESO
Cultura clàssica 3r ESOCultura clàssica 3r ESO
Cultura clàssica 3r ESOnuvol2
 
Equipe6luelimayralaisabruna
Equipe6luelimayralaisabrunaEquipe6luelimayralaisabruna
Equipe6luelimayralaisabrunaguest09ac11
 

Viewers also liked (20)

Tegometall Shelving
Tegometall ShelvingTegometall Shelving
Tegometall Shelving
 
Aumento 1
Aumento 1Aumento 1
Aumento 1
 
Artis Overview
Artis OverviewArtis Overview
Artis Overview
 
Using blurred images to assess damage in bridge structures?
Using blurred images to assess damage in bridge structures?Using blurred images to assess damage in bridge structures?
Using blurred images to assess damage in bridge structures?
 
Toward overcoming the concept of effective stiffness and damping in the dynam...
Toward overcoming the concept of effective stiffness and damping in the dynam...Toward overcoming the concept of effective stiffness and damping in the dynam...
Toward overcoming the concept of effective stiffness and damping in the dynam...
 
SDEE: Lecture 6
SDEE: Lecture 6SDEE: Lecture 6
SDEE: Lecture 6
 
Failure of slender and stocky columns (2nd year)
Failure of slender and stocky columns (2nd year)Failure of slender and stocky columns (2nd year)
Failure of slender and stocky columns (2nd year)
 
Spectrum-Compliant Accelerograms through Harmonic Wavelet Transform
Spectrum-Compliant Accelerograms through Harmonic Wavelet TransformSpectrum-Compliant Accelerograms through Harmonic Wavelet Transform
Spectrum-Compliant Accelerograms through Harmonic Wavelet Transform
 
SDEE: Lectures 1 and 2
SDEE: Lectures 1 and 2SDEE: Lectures 1 and 2
SDEE: Lectures 1 and 2
 
Complex strains (2nd year)
Complex strains (2nd year)Complex strains (2nd year)
Complex strains (2nd year)
 
Complex stresses (2nd year)
Complex stresses (2nd year)Complex stresses (2nd year)
Complex stresses (2nd year)
 
Shear stresses (2nd year)
Shear stresses (2nd year)Shear stresses (2nd year)
Shear stresses (2nd year)
 
Structural Mechanics: Deflections of Beams in Bending
Structural Mechanics: Deflections of Beams in BendingStructural Mechanics: Deflections of Beams in Bending
Structural Mechanics: Deflections of Beams in Bending
 
Structural Mechanics: Shear stress in Beams (1st-Year)
Structural Mechanics: Shear stress in Beams (1st-Year)Structural Mechanics: Shear stress in Beams (1st-Year)
Structural Mechanics: Shear stress in Beams (1st-Year)
 
Hologramas
HologramasHologramas
Hologramas
 
Web 2
Web 2Web 2
Web 2
 
Hjärtat!
Hjärtat!Hjärtat!
Hjärtat!
 
agenda local colaborativa pela retoma
agenda local colaborativa pela retomaagenda local colaborativa pela retoma
agenda local colaborativa pela retoma
 
Cultura clàssica 3r ESO
Cultura clàssica 3r ESOCultura clàssica 3r ESO
Cultura clàssica 3r ESO
 
Equipe6luelimayralaisabruna
Equipe6luelimayralaisabrunaEquipe6luelimayralaisabruna
Equipe6luelimayralaisabruna
 

Similar to Tablas, Codigos Base De Datos Excelsa

Sentencias básicas en oracle
Sentencias básicas en oracleSentencias básicas en oracle
Sentencias básicas en oracleNelson Salinas
 
- Php myadmin sql dump-- version 4.0.10.7-- httpwww.php
 - Php myadmin sql dump-- version 4.0.10.7-- httpwww.php - Php myadmin sql dump-- version 4.0.10.7-- httpwww.php
- Php myadmin sql dump-- version 4.0.10.7-- httpwww.phpssuserfa5723
 
When debugging the code, use Drop table statementsto drop pr.docx
 When debugging the code, use Drop table statementsto drop pr.docx When debugging the code, use Drop table statementsto drop pr.docx
When debugging the code, use Drop table statementsto drop pr.docxaryan532920
 
Writeable ct es_pgcon_may_2011
Writeable ct es_pgcon_may_2011Writeable ct es_pgcon_may_2011
Writeable ct es_pgcon_may_2011David Fetter
 
Description Master Index of EDGAR Dissemination FeedL.docx
Description           Master Index of EDGAR Dissemination FeedL.docxDescription           Master Index of EDGAR Dissemination FeedL.docx
Description Master Index of EDGAR Dissemination FeedL.docxcarolinef5
 
Description Master Index of EDGAR Dissemination FeedL.docx
Description           Master Index of EDGAR Dissemination FeedL.docxDescription           Master Index of EDGAR Dissemination FeedL.docx
Description Master Index of EDGAR Dissemination FeedL.docxdonaldp2
 
Description Master Index of EDGAR Dissemination FeedL.docx
Description           Master Index of EDGAR Dissemination FeedL.docxDescription           Master Index of EDGAR Dissemination FeedL.docx
Description Master Index of EDGAR Dissemination FeedL.docxcuddietheresa
 
SQL FILE FROM MOODLEUSE [master]GO Object Databa.pdf
SQL FILE FROM MOODLEUSE [master]GO Object Databa.pdfSQL FILE FROM MOODLEUSE [master]GO Object Databa.pdf
SQL FILE FROM MOODLEUSE [master]GO Object Databa.pdfarrowit1
 
Database Implementation Final Document
Database Implementation Final DocumentDatabase Implementation Final Document
Database Implementation Final DocumentConor O'Callaghan
 
Video club consulta
Video club consultaVideo club consulta
Video club consultaRuth Cujilan
 
Video club consulta
Video club consultaVideo club consulta
Video club consultaRuth Cujilan
 
EJERCICIOS DE BENFORTAN
EJERCICIOS DE BENFORTANEJERCICIOS DE BENFORTAN
EJERCICIOS DE BENFORTANarkangel8801
 
# Dump File## Database is ported from MS Access#---------.docx
# Dump File## Database is ported from MS Access#---------.docx# Dump File## Database is ported from MS Access#---------.docx
# Dump File## Database is ported from MS Access#---------.docxkatherncarlyle
 
SPOOL output.log DROP TABL.pdf
SPOOL output.log DROP TABL.pdfSPOOL output.log DROP TABL.pdf
SPOOL output.log DROP TABL.pdffashionfootwear1
 

Similar to Tablas, Codigos Base De Datos Excelsa (20)

Mysql schema emp dept
Mysql schema emp deptMysql schema emp dept
Mysql schema emp dept
 
Cine
CineCine
Cine
 
Create view ans sequence
Create view ans sequenceCreate view ans sequence
Create view ans sequence
 
Sentencias básicas en oracle
Sentencias básicas en oracleSentencias básicas en oracle
Sentencias básicas en oracle
 
- Php myadmin sql dump-- version 4.0.10.7-- httpwww.php
 - Php myadmin sql dump-- version 4.0.10.7-- httpwww.php - Php myadmin sql dump-- version 4.0.10.7-- httpwww.php
- Php myadmin sql dump-- version 4.0.10.7-- httpwww.php
 
Bd tienda
Bd tienda Bd tienda
Bd tienda
 
When debugging the code, use Drop table statementsto drop pr.docx
 When debugging the code, use Drop table statementsto drop pr.docx When debugging the code, use Drop table statementsto drop pr.docx
When debugging the code, use Drop table statementsto drop pr.docx
 
Writeable ct es_pgcon_may_2011
Writeable ct es_pgcon_may_2011Writeable ct es_pgcon_may_2011
Writeable ct es_pgcon_may_2011
 
Description Master Index of EDGAR Dissemination FeedL.docx
Description           Master Index of EDGAR Dissemination FeedL.docxDescription           Master Index of EDGAR Dissemination FeedL.docx
Description Master Index of EDGAR Dissemination FeedL.docx
 
Description Master Index of EDGAR Dissemination FeedL.docx
Description           Master Index of EDGAR Dissemination FeedL.docxDescription           Master Index of EDGAR Dissemination FeedL.docx
Description Master Index of EDGAR Dissemination FeedL.docx
 
Description Master Index of EDGAR Dissemination FeedL.docx
Description           Master Index of EDGAR Dissemination FeedL.docxDescription           Master Index of EDGAR Dissemination FeedL.docx
Description Master Index of EDGAR Dissemination FeedL.docx
 
SQL FILE FROM MOODLEUSE [master]GO Object Databa.pdf
SQL FILE FROM MOODLEUSE [master]GO Object Databa.pdfSQL FILE FROM MOODLEUSE [master]GO Object Databa.pdf
SQL FILE FROM MOODLEUSE [master]GO Object Databa.pdf
 
Database Implementation Final Document
Database Implementation Final DocumentDatabase Implementation Final Document
Database Implementation Final Document
 
Video club consulta
Video club consultaVideo club consulta
Video club consulta
 
Video club consulta
Video club consultaVideo club consulta
Video club consulta
 
EJERCICIOS DE BENFORTAN
EJERCICIOS DE BENFORTANEJERCICIOS DE BENFORTAN
EJERCICIOS DE BENFORTAN
 
Benforta
BenfortaBenforta
Benforta
 
Benforta
BenfortaBenforta
Benforta
 
# Dump File## Database is ported from MS Access#---------.docx
# Dump File## Database is ported from MS Access#---------.docx# Dump File## Database is ported from MS Access#---------.docx
# Dump File## Database is ported from MS Access#---------.docx
 
SPOOL output.log DROP TABL.pdf
SPOOL output.log DROP TABL.pdfSPOOL output.log DROP TABL.pdf
SPOOL output.log DROP TABL.pdf
 

More from Héctor

Mayor3366
Mayor3366Mayor3366
Mayor3366Héctor
 
13 9° proceso gestión de las adquisiciones
13 9° proceso gestión de las adquisiciones13 9° proceso gestión de las adquisiciones
13 9° proceso gestión de las adquisicionesHéctor
 
12 8° proceso gestión de los riesgos
12 8° proceso gestión de los riesgos12 8° proceso gestión de los riesgos
12 8° proceso gestión de los riesgosHéctor
 
11 7° proceso gestión de las comunicaciones
11 7° proceso gestión de las comunicaciones11 7° proceso gestión de las comunicaciones
11 7° proceso gestión de las comunicacionesHéctor
 
10 6° gestión de los recursos humanos
10 6° gestión de los recursos humanos10 6° gestión de los recursos humanos
10 6° gestión de los recursos humanosHéctor
 
09 5° proceso gestión de la calidad
09 5° proceso gestión de la calidad09 5° proceso gestión de la calidad
09 5° proceso gestión de la calidadHéctor
 
08 4° proceso gestión de los costos
08 4° proceso gestión de los costos08 4° proceso gestión de los costos
08 4° proceso gestión de los costosHéctor
 
07 3er proceso gestión del tiempo
07 3er proceso gestión del tiempo07 3er proceso gestión del tiempo
07 3er proceso gestión del tiempoHéctor
 
06 2° proceso gestión del alcance
06 2° proceso gestión del alcance06 2° proceso gestión del alcance
06 2° proceso gestión del alcanceHéctor
 
05 1er proceso gestión de la integracion del proyecto
05 1er proceso gestión de la integracion del proyecto05 1er proceso gestión de la integracion del proyecto
05 1er proceso gestión de la integracion del proyectoHéctor
 
04 sección iii áreas de conocimiento
04 sección iii áreas de conocimiento04 sección iii áreas de conocimiento
04 sección iii áreas de conocimientoHéctor
 
03 sección ii cap 3 procesos de la dirección de proyectos para un proyecto
03 sección ii cap 3 procesos de la dirección de proyectos para un proyecto03 sección ii cap 3 procesos de la dirección de proyectos para un proyecto
03 sección ii cap 3 procesos de la dirección de proyectos para un proyectoHéctor
 
02 sección i el marco de referencia para la dirección de proyectos
02 sección i  el marco de referencia para la dirección de proyectos02 sección i  el marco de referencia para la dirección de proyectos
02 sección i el marco de referencia para la dirección de proyectosHéctor
 
01 estructura pmbok
01 estructura pmbok01 estructura pmbok
01 estructura pmbokHéctor
 
Xtuple 3.6 equipo 2
Xtuple 3.6 equipo 2Xtuple 3.6 equipo 2
Xtuple 3.6 equipo 2Héctor
 
X tuple sio (2)
X tuple   sio (2)X tuple   sio (2)
X tuple sio (2)Héctor
 
T1 u2 itp-001-11_transmision_video_tiempo_real
T1 u2 itp-001-11_transmision_video_tiempo_realT1 u2 itp-001-11_transmision_video_tiempo_real
T1 u2 itp-001-11_transmision_video_tiempo_realHéctor
 
L2 u2 héctor javier sánchez cenobio
L2 u2 héctor javier sánchez cenobioL2 u2 héctor javier sánchez cenobio
L2 u2 héctor javier sánchez cenobioHéctor
 
T1 u2 itp-001-11_transmision_video_tiempo_real
T1 u2 itp-001-11_transmision_video_tiempo_realT1 u2 itp-001-11_transmision_video_tiempo_real
T1 u2 itp-001-11_transmision_video_tiempo_realHéctor
 
L1 u2 héctor javier sánchez cenobio
L1 u2 héctor javier sánchez cenobioL1 u2 héctor javier sánchez cenobio
L1 u2 héctor javier sánchez cenobioHéctor
 

More from Héctor (20)

Mayor3366
Mayor3366Mayor3366
Mayor3366
 
13 9° proceso gestión de las adquisiciones
13 9° proceso gestión de las adquisiciones13 9° proceso gestión de las adquisiciones
13 9° proceso gestión de las adquisiciones
 
12 8° proceso gestión de los riesgos
12 8° proceso gestión de los riesgos12 8° proceso gestión de los riesgos
12 8° proceso gestión de los riesgos
 
11 7° proceso gestión de las comunicaciones
11 7° proceso gestión de las comunicaciones11 7° proceso gestión de las comunicaciones
11 7° proceso gestión de las comunicaciones
 
10 6° gestión de los recursos humanos
10 6° gestión de los recursos humanos10 6° gestión de los recursos humanos
10 6° gestión de los recursos humanos
 
09 5° proceso gestión de la calidad
09 5° proceso gestión de la calidad09 5° proceso gestión de la calidad
09 5° proceso gestión de la calidad
 
08 4° proceso gestión de los costos
08 4° proceso gestión de los costos08 4° proceso gestión de los costos
08 4° proceso gestión de los costos
 
07 3er proceso gestión del tiempo
07 3er proceso gestión del tiempo07 3er proceso gestión del tiempo
07 3er proceso gestión del tiempo
 
06 2° proceso gestión del alcance
06 2° proceso gestión del alcance06 2° proceso gestión del alcance
06 2° proceso gestión del alcance
 
05 1er proceso gestión de la integracion del proyecto
05 1er proceso gestión de la integracion del proyecto05 1er proceso gestión de la integracion del proyecto
05 1er proceso gestión de la integracion del proyecto
 
04 sección iii áreas de conocimiento
04 sección iii áreas de conocimiento04 sección iii áreas de conocimiento
04 sección iii áreas de conocimiento
 
03 sección ii cap 3 procesos de la dirección de proyectos para un proyecto
03 sección ii cap 3 procesos de la dirección de proyectos para un proyecto03 sección ii cap 3 procesos de la dirección de proyectos para un proyecto
03 sección ii cap 3 procesos de la dirección de proyectos para un proyecto
 
02 sección i el marco de referencia para la dirección de proyectos
02 sección i  el marco de referencia para la dirección de proyectos02 sección i  el marco de referencia para la dirección de proyectos
02 sección i el marco de referencia para la dirección de proyectos
 
01 estructura pmbok
01 estructura pmbok01 estructura pmbok
01 estructura pmbok
 
Xtuple 3.6 equipo 2
Xtuple 3.6 equipo 2Xtuple 3.6 equipo 2
Xtuple 3.6 equipo 2
 
X tuple sio (2)
X tuple   sio (2)X tuple   sio (2)
X tuple sio (2)
 
T1 u2 itp-001-11_transmision_video_tiempo_real
T1 u2 itp-001-11_transmision_video_tiempo_realT1 u2 itp-001-11_transmision_video_tiempo_real
T1 u2 itp-001-11_transmision_video_tiempo_real
 
L2 u2 héctor javier sánchez cenobio
L2 u2 héctor javier sánchez cenobioL2 u2 héctor javier sánchez cenobio
L2 u2 héctor javier sánchez cenobio
 
T1 u2 itp-001-11_transmision_video_tiempo_real
T1 u2 itp-001-11_transmision_video_tiempo_realT1 u2 itp-001-11_transmision_video_tiempo_real
T1 u2 itp-001-11_transmision_video_tiempo_real
 
L1 u2 héctor javier sánchez cenobio
L1 u2 héctor javier sánchez cenobioL1 u2 héctor javier sánchez cenobio
L1 u2 héctor javier sánchez cenobio
 

Recently uploaded

unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxBkGupta21
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 

Recently uploaded (20)

unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 

Tablas, Codigos Base De Datos Excelsa

  • 1. Creación de tablas DROP TABLE IF EXISTS `Emleados`; CREATE TABLE `Emleados` ( `ID_Empleado` int(4) NOT NULL, `Nombre_Empleado` char(50) NOT NULL, `Apellido_Paterno` char(20) NOT NULL, `Apellido_Materno` char(20) NOT NULL, `Puesto` char(20) NOT NULL, `Area` varchar(10) NOT NULL, `F_Ingreso` date NOT NULL, `Telefono` int(13) NOT NULL, `Direccion` char(100) NOT NULL, `Eficiencia` char(10) DEFAULT NULL, PRIMARY KEY (`ID_Empleado`) ) DROP TABLE IF EXISTS `Anuncio`; CREATE TABLE `Anuncio` ( `ID_Anuncio` int(4) NOT NULL, `ID_Pedido` int(10) NOT NULL, `Archivo` char(20) NOT NULL, PRIMARY KEY (`ID_Anuncio`) ) DROP TABLE IF EXISTS `Areas`; CREATE TABLE `Areas` ( `ID_Area` int(4) NOT NULL, `Area` varchar(10) NOT NULL, PRIMARY KEY (`ID_Area`) ) DROP TABLE IF EXISTS `Cobros`; CREATE TABLE `Cobros` ( `ID_Cobro` int(4) NOT NULL, `ID_Pedido` int(4) NOT NULL, `Pago_No` int(2) DEFAULT NULL, `Fe_Pago` datetime DEFAULT NULL, `Fe_Pro_Pago` datetime DEFAULT NULL, `Abono` int(10) NOT NULL, `Resta` int(10) NOT NULL, PRIMARY KEY (`ID_Cobro`), KEY `ID_Pedido` (`ID_Pedido`) )
  • 2. Creación de tablas DROP TABLE IF EXISTS `Tamano`; CREATE TABLE `Tamano` ( `ID_Tamano` int(4) NOT NULL, `Tamano` char(10) NOT NULL, PRIMARY KEY (`ID_Tamano`) ) DROP TABLE IF EXISTS `Cliente`; CREATE TABLE `Cliente` ( `ID_Cliente` int(4) NOT NULL, `Nombre_Cliente` char(20) NOT NULL, `Apellido_Paterno` char(20) NOT NULL, `Apellido_Materno` char(20) DEFAULT NULL, `Direccion` char(100) NOT NULL, `Nombre_Organizacion` char(50) NOT NULL, `Dir_Org` char(100) DEFAULT NULL, `Telefono_Cli` int(13) DEFAULT NULL, `e_mail` char(50) DEFAULT NULL, `RFC` char(13) DEFAULT NULL, PRIMARY KEY (`ID_Cliente`) ) DROP TABLE IF EXISTS `Puestos`; CREATE TABLE `Puestos` ( `ID_Puesto` int(4) NOT NULL, `Puesto` char(20) NOT NULL, PRIMARY KEY (`ID_Puesto`) )
  • 3. Creación de tablas DROP TABLE IF EXISTS `Eficiencia`; CREATE TABLE `Eficiencia` ( `ID_Eficiencia` int(4) NOT NULL, `Nivel` char(10) NOT NULL, PRIMARY KEY (`ID_Eficiencia`) ) DROP TABLE IF EXISTS `Imprenta`; CREATE TABLE `Imprenta` ( `ID_Envio` int(4) NOT NULL, `ID_Revista` int(4) NOT NULL, `Fe_Envio` date NOT NULL, `Fe_Recoger` date NOT NULL, `ID_Empleado` int(4) DEFAULT NULL, PRIMARY KEY (`ID_Envio`) ) DROP TABLE IF EXISTS `Pedido`; CREATE TABLE `Pedido` ( `ID_Pedido` int(10) NOT NULL, `ID_Cliente` int(12) NOT NULL, `F_Pedido` datetime NOT NULL, `Meses` int(2) NOT NULL, `Ejemplar` int(4) NOT NULL, `Tamano` int(4) NOT NULL, `Total_Pagar` float DEFAULT NULL, `Forma_Pago` char(8) NOT NULL, `Pago_Inicial` int(10) NOT NULL, `Debe` int(10) NOT NULL, `Archivo` char(20) DEFAULT NULL, PRIMARY KEY (`ID_Pedido`), KEY `Forma_Pago` (`Forma_Pago`), KEY `ID_Cliente` (`ID_Cliente`) )
  • 4. Creación de tablas DROP TABLE IF EXISTS `Revista`; CREATE TABLE `Revista` ( `ID_Revista` int(4) NOT NULL, `Ejemplar` int(4) NOT NULL, `Archivo` char(10) NOT NULL, PRIMARY KEY (`ID_Revista`) ) DROP TABLE IF EXISTS `Tipo_Pago`; CREATE TABLE `Tipo_Pago` ( `ID_TipoPago` char(4) NOT NULL, `Forma_Pago` char(8) DEFAULT NULL, PRIMARY KEY (`ID_TipoPago`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  • 5. Insertar datos en la tabla insert into `Cobros` values('700','4001','1','2009-03-14 00:00:00','2009-04-14 00:00:00','400','700'), ('702','4001','2','2009-04-14 00:00:00','2009-05-14 00:03:11','300','400'), ('703','4001','3','2009-05-14 00:00:00',null,'400','0'), ('701','4002','1','2009-03-05 00:09:34','2009-04-05 00:09:52','1200','8606'), ('704','4002','2','2009-04-05 00:09:52','2009-05-05 00:13:27','3000','5606'), ('705','4002','3','2009-05-05 00:13:27','2009-06-05 00:15:44','700','4906'), ('706','4002','4','2009-06-05 00:15:44','2009-07-05 00:18:24','900','4006'), ('707','4002','5','2009-07-05 00:18:24','2009-08-05 00:18:24','1000','3006'), ('708','4002','6','2009-08-05 00:18:24','2009-09-05 00:18:24','600','2406'), ('709','4002','7','2009-09-05 00:18:24','2009-10-05 00:18:24','1400','1006'), ('710','4003','8','2009-11-05 00:18:24',null,'1006','0'), ('711','4003','1','2009-04-16 00:31:06','2009-05-16 00:31:06','300','702'), ('712','4003','2','2009-05-16 00:31:06','2009-06-16 00:31:06','300','402'), ('713','4003','3','2009-06-16 00:31:06',null,'402','0'), ('714','4005','1','2009-04-17 00:37:09','2009-05-17 00:37:09','500','500'), ('715','4005','2','2009-05-17 00:37:09',null,'500','0'), ('716','4006','1','2009-05-22 00:42:07','2009-06-22 00:42:07','200','800'), ('717','4006','2','2009-06-22 00:42:07','2009-07-22 00:42:07','400','400'), ('718','4006','3','2009-07-22 00:42:07','2009-08-22 00:42:07','200','200'), ('719','4006','4','2009-08-22 00:42:07','0000-00-00 00:00:00','200','0'), ('720','4007','1','2009-06-04 00:46:40','2009-07-04 00:46:40','400','902'),
  • 6. ('721','4007','2','2009-07-04 00:46:40','2009-08-04 00:46:40','400','502'), ('722','4007','3','2009-08-04 00:46:40',null,'502','0'), ('723','4010','1','2009-06-18 00:49:37','2009-07-18 00:49:37','1000','4904'), ('724','4010','2','2009-07-18 00:49:37','2009-08-18 00:49:37','1000','3904'), ('725','4010','3','2009-08-18 00:49:37','2009-09-18 00:49:37','1200','2704'), ('726','4010','4','2009-09-18 00:49:37','2009-10-18 00:49:37','500','2204'), ('727','4010','5','2009-10-18 00:49:37','2009-11-18 00:49:37','1000','1204'), ('728','4010','6','2009-11-16 00:49:37',null,'1204','0'), ('729','4011','1','2009-05-04 00:54:44','2009-06-04 00:54:44','300','1200'), ('730','4011','2','2009-06-04 00:54:44','2009-07-04 00:54:44','300','900'), ('731','4011','3','2009-07-04 00:54:44','2009-08-04 00:54:44','300','600'), ('732','4011','4','2009-08-04 00:54:44',null,'600','0'), ('733','4013','1','2009-07-16 00:56:39','2009-08-16 00:56:39','300','1353'), ('734','4013','2','2009-08-16 00:56:39','2009-09-16 00:56:39','600','753'), ('735','4013','3','2009-09-16 00:56:39','2009-10-16 00:56:39','500','253'), ('736','4013','4','2009-10-16 00:56:39',null,'253','0'), ('737','4014','1','2009-09-14 01:00:43','2009-10-14 01:00:43','1000','4105'), ('738','4014','2','2009-10-14 01:00:43','2009-11-14 01:00:43','1300','2805'), ('739','4014','3','2009-11-14 01:00:43',null,'0','2805'), ('740','4015','1','2009-10-17 01:12:02','2009-11-17 01:12:56','300','250'), ('741','4016','1','2009-11-11 01:14:35','2009-12-17 01:15:16','300','400'), ('742','4015','2','2009-11-17 01:12:56',null,'0','250'); insert into `Eficiencia` values('9001','Exelente'), ('9002','Bueno'), ('9003','Optimo'), ('9004','Regular'), ('9005','Malo'), ('9006','Sin Evalua'); insert into `Imprenta` values('7001','600','2009-11-23','2009-12-01','8001'); insert into `Pedido` values('4001','2','2009-02-14 21:54:51','6','603','1001','1500','2002','400','1100',null), ('4002','3','2009-02-05 22:12:07','11','603','1004','11005.5','2002','1200','9806',null), ('4003','4','2009-03-16 22:22:19','3','604','1002','1351.5','2002','350','1002',null), ('4004','5','2009-03-19 22:25:29','2','604','1001','0','2003','0','0',null), ('4005','6','2009-03-07 22:43:14','5','604','1001','1250','2002','250','1000',null), ('4006','7','2009-04-01 22:43:32','6','605','1001','1500','2002','500','1000',null), ('4007','8','2009-05-04 22:43:54','3','606','1003','2101.5','2002','800','1302',null), ('4008','9','2009-05-13 22:44:19','4','606','1001','0','2003','0','0',null), ('4009','10','2009-05-15 22:44:28','2','606','1004','2001','2001','2001','0',null), ('4010','11','2009-05-18 22:45:44','7','606','1004','7003.5','2002','1100','5904',null), ('4011','12','2009-06-04 22:45:58','8','607','1001','2000','2002','500','1500',null), ('4012','13','2009-06-17 22:46:09','6','607','1002','0','2003','0','0',null), ('4013','14','2009-07-16 22:46:23','5','608','1002','2252.5','2002','600','1653',null),
  • 7. ('4014','15','2009-08-17 22:46:43','9','609','1003','6304.5','2002','1200','5105',null), ('4015','16','2009-09-17 01:07:33','3','610','1001','750','2002','200','550',null), ('4016','17','2009-10-11 01:07:49','4','611','1001','1000','2002','300','700',null), ('4017','18','2009-11-13 01:07:56','5','612','1001','1250','2002','400','850',null); insert into Puestos values ('3001','Fotografo'), ('3002','Ejecutivo de Ventas'), ('3003','Recepcionista'), ('3004','Escritor'), ('3005','Disenador Grafico'), ('3006','Repartidor'), ('3007','Coordinador de Publi',), ('3008','Director General'), ('3009','Admon Y Finanzas'); insert into `Revista` values('600','11','c:/revista'), ('601','1','c:/revista'), ('602','2','c:/revista'), ('603','3','c:/revista'), ('604','4','c:/revista'), ('605','5','c:/revista'), ('606','6','c:/revista'), ('607','7','c:/revista'), ('608','8','c:/revista'), ('609','9','c:/revista'), ('610','10','c:/revista'), ('611','11','c:/revista'), ('612','12','c:/revista'), ('613','13','c:/revista'), ('614','14','c:/revista'), ('615','15','c:/revista'); insert into `Tamano` values('1001','1 Cuarto'), ('1002','1/2 Pagina'), ('1003','3 Cuartos'), ('1004','1 Pagina'); insert into `Tipo_Pago` values('2001','Contado'), ('2002','Credito'), ('2003','Cortecia'); SET FOREIGN_KEY_CHECKS = 1;