INTRODUCCIÓN De lo que trata la base de datos es para llevar más sencillo el control de almacén de una zapatería, al hacer entrada, salida y cambios de mercancía para que así hacer los cortes sean más sencillos.
TEMA CalzadoPatris ANTECEDENTES Y JUSTIFICACIÓN ANTECEDENTES Nosotros asistimos a la empresa para saber cuál era su mayor problema y así sacamos una conclusión de cómo ayudarlos, al momento de crear un programa que lleve un control más fácil para el usuario o para personas que no están relacionadas con el programa.
JUSTIFICACIÓN ste programa es más que e!caz para una empresa y que se puede aprender a usar más sencillo, y satisface a una zapatería que tiene problemas con su almacén.
OBJETIVOS l ob"etivo del proyecto es de crear una base de datos que contenga la información del tipo de organización que se está realizando
METODOLOGA #a metodología de esta documentación de los códigos de $%# $erver &'''
TIPO DE INVESTIGACIÓN #os e"ercicios en clases ya que con esos e"ercicios pude desarrollar este proyecto.
INSTRUMENTOS UTILI!ADOS #engua"e, $oft(are, )ard(are, )umano, Datos. #engua"e* #engua"e de programación en $%# Data +ase $oft(are* $%# Data +ase )ard(are* n equipo de computación -pc, laptop, etc. )umano* $olo el equipo -empresa, encargado de la empresa. Datos* los /nicos proporcionados de la empresa.
Ac t i vi da d1 .
Ac t i vi da d2 . Cr e a rBa s ed eD Da a t o syCa pt ur a rPa nt a l l adeUbi c a c i ó n.
Ac t i vi da d3 . De fini rTa bl a s .
o ve e dor e s , Pr oduc t o,S uc ur s a l e s , Ve nt a s , Pe di dos , Empl e a dos , Empl e a dos _ S uc ur s a l e s , Ta bl a s :Pr S uc ur s a l e s _ Pr o ve e dor e s , S uc ur s a l e s _ Ve nt a s , Ve nt a s _ Pr oduc t o,Pr o ve e dor e s _ Pr oduc t o, Pr o v e e do re s _ P e di do .
Ac t i vi da d4 .Cr e a rTa bl a syCa pt ur a rPa nt a l l a . create table Pro"##dor#s0olio char-1not null, Nombre char-&'not null, 2pellidos char-&'not null, mpresa char-&'not null, 3elefono 3elefono char-4¬ null, Direccion char-&1not null, bicacion char-41not null, 3ransporte 3ransporte char-4¬ null, 5osto char-41not null, 6edidos char-¬ null,
primary 7ey -0olio8
select 9 from 6roveedores
create table Prod$%to:odelo char-;not null, :arca char-4'not null, 5olor char -4'not null, 3alla char-1not null, :aterial char-4'not null, 3emporada char-4'not null, nidades<2lmacenadas char-;not null, 6recio char-4'not null, bicacion char-4'not null, 6roveedor char-4¬ null, primary 7ey -:odelo8
select 9 from 6roducto
create table S$%$rsal#s$ucursal char-&'not null, Direccion char-41not null, 5odigo<6ostal char-1not null, 3elefono char-4¬ null, =erente char-41not null, mpleados char->not null, bicacion char-4'not null, 6roductos char->not null, 6roveedor char-4¬ null, primary 7ey -$ucursal8
select 9 from $ucursales
create table V#&tas 3ic7et char->not null, :odelo char-;not null, 5antidad char-;not null, bicacion char-4'not null, 0echanot null, 3otal<6ago char-@not null, primary 7ey -3ic7et8
select 9 from ?entas
create table P#didosAd6edido char->not null, 6roducto char-;not null, 5antidad char-;not null, 0echa<6edido datetime not null, 0echa<ntrega datetime not null, :ayoreo char-¬ null, $ucursal char-&'not null, #ote char-;not null, 5orrida char-@not null, 3otal<6ago char-4¬ null, primary 7ey -Ad6edido8
select 9 from 6edidos
create table E'(l#ados0olio char->not null, Nombre char-4¬ null, 2pellidos char-4¬ null, Direccion char-41not null, Numero char-Bnot null, $eCo char-not null, 6uesto char-4'not null, $ueldo char-4¬ null, 5omision char-;not null, 3ienda char-4¬ null, )orario char-41not null, primary 7ey -0olio8
select 9 from mpleados
create table E'(l#ados)S$%$rsal#s0olio char->not null, $ucursal char-&'not null, nota int not null, foreign 7ey -0olio references mpleados-0olio, foreign 7ey -$ucursal references $ucursales-$ucursal8
select 9 from mpleados<$ucursales
create table S$%$rsal#s)Pro"##dor#s-
$ucursal char-&'not null, 0olio char-1not null, nota int not null, foreign 7ey -$ucursal references $ucursales-$ucursal, foreign 7ey -0olio references 6roveedores-0olio8
select 9 from $ucursales<6roveedores
create table S$%$rsal#s)V#&tas $ucursal char-&'not null, 3ic7et char->not null, nota int not null, foreign 7ey -$ucursal references $ucursales-$ucursal, foreign 7ey -3ic7et references ?entas-3ic7et8
select 9 from $ucursales
create table V#&tas)Prod$%to 3ic7et char->not null, :odelo char-;not null, nota int not null, foreign 7ey -3ic7et references ?entas-3ic7et, foreign 7ey -:odelo references 6roducto-:odelo8
select 9 from ?entas<6roducto
create table Pro"##dor#s)Prod$%to0olio char-1not null, :odelo char-;not null,
nota int not null, foreign 7ey -0olio references 6roveedores-0olio, foreign 7ey -:odelo references 6roducto-:odelo8
select 9 from 6roveedores<6roducto
create table Pro"##dor#s)P#didos0olio char-1not null, Ad6edido char->not null, nota int not null, foreign 7ey -0olio references 6roveedores-0olio, foreign 7ey -Ad6edido references 6edidos-Ad6edido8
select 9 from 6roveedores<6edidos
Ac t i vi dad5.Agr egarCol umnas . P r o v e e d o r e s . alter table 6roveedores add 5iudad char-&' alter table 6roveedores add 5odigo
'
P r o d u c t o . alter table 6roducto add DiseEador char->' alter table 6roducto add 3ipo
Suc ur s a l e s . alter table $ucursales add 3ransporte char-4' alter table $ucursales add $ubgerente char->' alter table $ucursales add 2rea
Vent as . alter table ?entas add Cistencia char-4' alter table ?entas add 6ago<:eses char-4' alter table ?entas add Anteres char-4'
Pedidos. alter table 6edidos add 6recio
Empl ea dos. alter table mpleados add 6roducto
Ac t i vi dad6. Qui t arCol umnas . P r o v e e d o r e s . alter table 6roveedores drop column 5iudad
alter table 6roveedores drop column 5odigo
P r o d u c t o . alter table 6roducto drop column DiseEador alter table 6roducto drop column 3ipo
Suc ur s a l e s . alter table $ucursales drop column 3ransporte alter table $ucursales drop column $ubgerente alter table $ucursales drop column 2rea
Vent as . alter table ?entas drop column Cistencia alter table ?entas drop column 6ago<:eses alter table ?entas drop column Anteres
Pedidos. alter table 6edidos drop column 6recio
* Empl e a dos alter table mpleados drop column 6roducto
Ac t i v i da d7 . Mo de l oEnt i da dRe l a c i ó n.
Ac t i vi da d8 .I ns e r t a rr e gi s t r os P r o v e e d o r e s insert 6roveedores -0olio,Nombre,2pellidos,mpresa,3elefono,Direccion,bicacion,3ransporte,5osto,6edidos values -F''''4F,FGuanF,F:oralesF,F5ourtF,F@B@;H1>@F,F#ozano 'HF,F#eonF,F3errestreF,F4&,1''F,F4F insert 6roveedores -0olio,Nombre,2pellidos,mpresa,3elefono,Direccion,bicacion,3ransporte,5osto,6edidos values -F''''&F,F:arcosF,F:endezF,F6irma +rasilF,FB>@BH1F,F0errocarriles >F,F#eonF,F3errestreF,F&>,'''F,F4F insert 6roveedores -0olio,Nombre,2pellidos,mpresa,3elefono,Direccion,bicacion,3ransporte,5osto,6edidos values -F''''>F,FIosarioF,F6eralesF,F#obo $oloF,FH1B>B;1HF,F$an :iguel @HF,F#eonF,F3errestreF,F41,@BHF,F4F insert 6roveedores -0olio,Nombre,2pellidos,mpresa,3elefono,Direccion,bicacion,3ransporte,5osto,6edidos
values -F'''';F,F#uisF,F0uentesF,F0leCiF,F;B@>1H>F,F2naya &>F,F#eonF,F3errestreF,F>;,1HBF,F>F insert 6roveedores -0olio,Nombre,2pellidos,mpresa,3elefono,Direccion,bicacion,3ransporte,5osto,6edidos values -F''''1F,FAsabelF,F=arciaF,F5apa de JzonoF,F@&B&>>&4F,F2lmiron >;1F,F#eonF,F3errestreF,F>;,@;F,F;F insert 6roveedores -0olio,Nombre,2pellidos,mpresa,3elefono,Direccion,bicacion,3ransporte,5osto,6edidos values -F''''HF,FIodrigoF,F$anchezF,F$porty 0inosF,F;1;H1>F,F0resno >;;F,F#eonF,F3errestreF,F4&,1''F,F&F insert 6roveedores -0olio,Nombre,2pellidos,mpresa,3elefono,Direccion,bicacion,3ransporte,5osto,6edidos values -F''''BF,F$amuelF,F:olinaF,FKarossoF,F&>;&@>B;H4F,F2rboledas >;&F,F#eonF,F3errestreF,F44,>;1F,F4F insert 6roveedores -0olio,Nombre,2pellidos,mpresa,3elefono,Direccion,bicacion,3ransporte,5osto,6edidos values -F''''@F,FGacoboF,F5analesF,FNi7eF,F4'&@>;F,F#osas 'HF,F#eonF,F3errestreF,F4@,1H1F,F4F insert 6roveedores -0olio,Nombre,2pellidos,mpresa,3elefono,Direccion,bicacion,3ransporte,5osto,6edidos values -F''''F,F$andraF,F5havezF,F6umaF,F@&>B;>;F,F#idio '>F,F#eonF,F3errestreF,F,@B1F,F4F insert 6roveedores -0olio,Nombre,2pellidos,mpresa,3elefono,Direccion,bicacion,3ransporte,5osto,6edidos values -F'''4'F,F2le"andraF,FLarzaF,FLullyF,F'@>B&>;&F,F:armol ;1HF,F#eonF,F3errestreF,F>,;''F,F4F
P r o d u c t o . insert 6roducto-:odelo,:arca,5olor,3alla,:aterial,3emporada,nidades<2lmacenadas,6recio,bicacion, 6roveedor values -F>'&F,F5ourtF,FIo"oF,F&F,F$inteticoF,F6rimM?erF,F4&F,F>1'F,F+odegaF,FGuanF insert 6roducto-:odelo,:arca,5olor,3alla,:aterial,3emporada,nidades<2lmacenadas,6recio,bicacion, 6roveedor values -F&>;F,F6irma +rasilF,F2zulF,F>F,F$inteticoF,FJtoMAnvF,F&>F,F;'F,F:ostradorF,F:arcosF
insert 6roducto-:odelo,:arca,5olor,3alla,:aterial,3emporada,nidades<2lmacenadas,6recio,bicacion, 6roveedor values -F44@F,F#obo $oloF,F:ostoF,FHF,F6ielF,F6rimM?erF,F41F,F>B'F,F+odegaF,FIosarioF insert 6roducto-:odelo,:arca,5olor,3alla,:aterial,3emporada,nidades<2lmacenadas,6recio,bicacion, 6roveedor values -FBB>@F,F0leCiF,F5hocolateF,FF,F6ielF,FJtoMAnvF,F>;F,F;1F,F+odegaF,F#uisF insert 6roducto-:odelo,:arca,5olor,3alla,:aterial,3emporada,nidades<2lmacenadas,6recio,bicacion, 6roveedor values -F;B>&F,F5apa de JzonoF,F=risF,F1F,F$inteticoF,F6rimM?erF,F;;F,F;>'F,F:ostradorF,FAsabelF insert 6roducto-:odelo,:arca,5olor,3alla,:aterial,3emporada,nidades<2lmacenadas,6recio,bicacion, 6roveedor values -F;@;BF,F$porty 0inosF,F5afeF,F;F,F6ielF,F6rimM?erF,F4HF,F&H1F,F:ostradorF,FIodrigoF insert 6roducto-:odelo,:arca,5olor,3alla,:aterial,3emporada,nidades<2lmacenadas,6recio,bicacion, 6roveedor values -F'B;@F,FKarossoF,F+lancoF,F@F,F6ielF,FJtoMAnvF,F44F,F>@F,F:ostradorF,F$amuelF insert 6roducto-:odelo,:arca,5olor,3alla,:aterial,3emporada,nidades<2lmacenadas,6recio,bicacion, 6roveedor values -F'&F,FNi7eF,F+lancoF,FBF,F6ielF,F6rimM?erF,F4@F,F1'1F,F+odegaF,FGacoboF insert 6roducto-:odelo,:arca,5olor,3alla,:aterial,3emporada,nidades<2lmacenadas,6recio,bicacion, 6roveedor values -F@'&F,F6umaF,F?erdeF,F4'F,F6ielF,FJtoMAnvF,FF,F1''F,F+odegaF,F$andraF insert 6roducto-:odelo,:arca,5olor,3alla,:aterial,3emporada,nidades<2lmacenadas,6recio,bicacion, 6roveedor values -FH;B>F,FLullyF,F)uesoF,[email protected],F6ielF,FJtoMAnvF,F>F,F41F,F:ostradorF,F2le"andraF
Suc ur s a l e s . insert $ucursales-$ucursal,Direccion,5odigo<6ostal,3elefono,=erente,mpleados,bicacion,6roductos,6r oveedor values-F;M5F,F:anellyF,F>B>1&F,F'F,F:iguelF,F4F,F#eonF,FBH1F,FGuanF insert $ucursales-$ucursal,Direccion,5odigo<6ostal,3elefono,=erente,mpleados,bicacion,6roductos,6r oveedor values-F&M3F,F:anellyF,F>B>1&F,F'F,F:iguelF,F&F,F#eonF,F@BHF,F:arcosF insert $ucursales-$ucursal,Direccion,5odigo<6ostal,3elefono,=erente,mpleados,bicacion,6roductos,6r oveedor values-FHMGF,F5aliforniaF,F>B>1&F,F'F,F:iguelF,F4F,F#eonF,F;HHF,FIosarioF insert $ucursales-$ucursal,Direccion,5odigo<6ostal,3elefono,=erente,mpleados,bicacion,6roductos,6r oveedor values-F4>MIF,F5aliforniaF,F>B>1&F,F>H1;>&F,F:iguelF,F>F,F#eonF,FF,F#uisF insert $ucursales-$ucursal,Direccion,5odigo<6ostal,3elefono,=erente,mpleados,bicacion,6roductos,6r oveedor values-F#ocal 4BF,F$an 5rispinF,F>B>1&F,F4&>&;1F,F:ariaF,F&F,F#eonF,F@HBF,FAsabelF insert $ucursales-$ucursal,Direccion,5odigo<6ostal,3elefono,=erente,mpleados,bicacion,6roductos,6r oveedor values-F@M%F,F:anellyF,F>B>1&F,F'F,F:iguelF,F4F,F#eonF,FBH1F,FIodrigoF insert $ucursales-$ucursal,Direccion,5odigo<6ostal,3elefono,=erente,mpleados,bicacion,6roductos,6r oveedor values-F#ocal &4F,F$an 5rispinF,F>B>1&F,F'F,F:ariaF,F4F,F#eonF,FBH1F,F$amuelF insert $ucursales-$ucursal,Direccion,5odigo<6ostal,3elefono,=erente,mpleados,bicacion,6roductos,6r oveedor values-F#ocal 1F,F$an 5rispinF,F>B>1&F,F'F,F:ariaF,F4F,F#eonF,FHB1F,FGacoboF insert $ucursales-$ucursal,Direccion,5odigo<6ostal,3elefono,=erente,mpleados,bicacion,6roductos,6r oveedor values-F#ocal >;F,F:etropolitanaF,F>B>1&F,FH1;H>>>F,F6atriciaF,F&F,F#eonF,FH1BF,F$andraF insert $ucursales-$ucursal,Direccion,5odigo<6ostal,3elefono,=erente,mpleados,bicacion,6roductos,6r oveedor
values-F#ocal >F,F:etropolitanaF,F>B>1&F,F'F,F:ariaF,F4F,F#eonF,F1HBF,F2le"andraF
Vent as . insert ?entas-3ic7et,:odelo,5antidad,bicacion,0echa'&F,F4F,F+odegaF,&'4>M'M4&,FfectivoF,F$andraF,FMF,FnoF,F>1'F insert ?entas-3ic7et,:odelo,5antidad,bicacion,0echa;F,F&F,F+odegaF,&'4>M'M4&,FfectivoF,F:iguelF,FMF,FnoF,F;'F insert ?entas-3ic7et,:odelo,5antidad,bicacion,0echaF,F44@F,F4F,F+odegaF,&'4>M'M4&,F3ar"etaF,F:ariaF,FMF,FnoF,F>B'F insert ?entas-3ic7et,:odelo,5antidad,bicacion,0echa@F,F4F,F+odegaF,&'4>M'M4&,F3ar"etaF,F#ourdesF,FMF,FnoF,F;1F insert ?entas-3ic7et,:odelo,5antidad,bicacion,0echa&F,F>F,F+odegaF,&'4>M'M4&,FfectivoF,F+eatrizF,FMF,FnoF,F;>'F insert ?entas-3ic7et,:odelo,5antidad,bicacion,0echaM'M4&,FfectivoF,F6atriciaF,FMF,FnoF,F&H1F insert ?entas-3ic7et,:odelo,5antidad,bicacion,0echaF,F+odegaF,&'4>M'M4&,FfectivoF,F$andraF,FMF,FnoF,F>@F insert ?entas-3ic7et,:odelo,5antidad,bicacion,0echa
values -F''@F,F'&F,F&F,F+odegaF,&'4>M'M4&,F3ar"etaF,FIocioF,FMF,FnoF,F1'1F insert ?entas-3ic7et,:odelo,5antidad,bicacion,0echaM'M4&,FfectivoF,F:ariaF,FMF,FnoF,F1'1F insert ?entas-3ic7et,:odelo,5antidad,bicacion,0echaF,F&F,F+odegaF,&'4>M'M4&,FfectivoF,F6atriciaF,FMF,FnoF,F41F
Pedi dos. insert 6edidos-Ad6edido,6roducto,5antidad,0echa<6edido,0echa<ntrega,:ayoreo,$ucursal,#ote,5orrida, 3otal<6ago values -F''4F,F>'&F,F&;F,&'4>M'@M4&,&'4>M'M4&,FsiF,F4>MIF,FHB@F,F&1M>'F,F;1,'''F insert 6edidos-Ad6edido,6roducto,5antidad,0echa<6edido,0echa<ntrega,:ayoreo,$ucursal,#ote,5orrida, 3otal<6ago values -F''&F,F>'&F,F&;F,&'4>M'@M4&,&'4>M'M4&,FsiF,F4>MIF,FHB@F,F&1M>'F,F;1,'''F insert 6edidos-Ad6edido,6roducto,5antidad,0echa<6edido,0echa<ntrega,:ayoreo,$ucursal,#ote,5orrida, 3otal<6ago values -F''>F,F>'&F,F&;F,&'4>M'@M4&,&'4>M'M4&,FsiF,F4>MIF,FHB@F,F&1M>'F,F;1,'''F insert 6edidos-Ad6edido,6roducto,5antidad,0echa<6edido,0echa<ntrega,:ayoreo,$ucursal,#ote,5orrida, 3otal<6ago values -F'';F,F>'&F,F&;F,&'4>M'@M4&,&'4>M'M4&,FsiF,F4>MIF,FHB@F,F&1M>'F,F;1,'''F insert 6edidos-Ad6edido,6roducto,5antidad,0echa<6edido,0echa<ntrega,:ayoreo,$ucursal,#ote,5orrida, 3otal<6ago values -F''1F,F>'&F,F&;F,&'4>M'@M4&,&'4>M'M4&,FsiF,F4>MIF,FHB@F,F&1M>'F,F;1,'''F
insert 6edidos-Ad6edido,6roducto,5antidad,0echa<6edido,0echa<ntrega,:ayoreo,$ucursal,#ote,5orrida, 3otal<6ago values -F''HF,F>'&F,F&;F,&'4>M'@M4&,&'4>M'M4&,FsiF,F4>MIF,FHB@F,F&1M>'F,F;1,'''F insert 6edidos-Ad6edido,6roducto,5antidad,0echa<6edido,0echa<ntrega,:ayoreo,$ucursal,#ote,5orrida, 3otal<6ago values -F''BF,F>'&F,F&;F,&'4>M'@M4&,&'4>M'M4&,FsiF,F4>MIF,FHB@F,F&1M>'F,F;1,'''F insert 6edidos-Ad6edido,6roducto,5antidad,0echa<6edido,0echa<ntrega,:ayoreo,$ucursal,#ote,5orrida, 3otal<6ago values -F''@F,F>'&F,F&;F,&'4>M'@M4&,&'4>M'M4&,FsiF,F4>MIF,FHB@F,F&1M>'F,F;1,'''F insert 6edidos-Ad6edido,6roducto,5antidad,0echa<6edido,0echa<ntrega,:ayoreo,$ucursal,#ote,5orrida, 3otal<6ago values -F''F,F>'&F,F&;F,&'4>M'@M4&,&'4>M'M4&,FsiF,F4>MIF,FHB@F,F&1M>'F,F;1,'''F insert 6edidos-Ad6edido,6roducto,5antidad,0echa<6edido,0echa<ntrega,:ayoreo,$ucursal,#ote,5orrida, 3otal<6ago values -F'4'F,F>'&F,F&;F,&'4>M'@M4&,&'4>M'M4&,FsiF,F4>MIF,FHB@F,F&1M>'F,F;1,'''F
* Empl e a dos insert mpleados-0olio,Nombre,2pellidos,Direccion,Numero,$eCo,6uesto,$ueldo,5omision,3ienda,)orari o values-F''4F,F:iguelF,F5ruzF,FGerez HB1F,F>;B&1@4F,F:asculinoF,F=erenteF,F4,'''F,F4F,F4>MIF,F4'M&' hrsF insert mpleados-0olio,Nombre,2pellidos,Direccion,Numero,$eCo,6uesto,$ueldo,5omision,3ienda,)orari o values-F''&F,F6atriciaF,F)ernandezF,FGerez HBHF,FH@H11F,F0emeninoF,F=erenteF,F4,'''F,F4F,F#ocal >;F,F4'M&' hrsF insert mpleados-0olio,Nombre,2pellidos,Direccion,Numero,$eCo,6uesto,$ueldo,5omision,3ienda,)orari o
values-F''>F,F:ariaF,F?azquezF,F0eliciano 1HBF,F>;B&1F,F0emeninoF,F=erenteF,F4,'''F,F4F,F#ocal 4BF,F4'M&' hrsF insert mpleados-0olio,Nombre,2pellidos,Direccion,Numero,$eCo,6uesto,$ueldo,5omision,3ienda,)orari o values-F'';F,F#ourdesF,F$anchezF,FAsidro 1>>F,F@H1;1>F,F0emeninoF,F?endedoraF,F1'F,F4F,F;M5F,F4'M &' hrsF insert mpleados-0olio,Nombre,2pellidos,Direccion,Numero,$eCo,6uesto,$ueldo,5omision,3ienda,)orari o values-F''1F,F+eatrizF,F$egovianoF,F5hipre BH;F,F'@1;>4&F,F0emeninoF,F?endedoraF,F1'F,F4F,FHM GF,F4'M&' hrsF insert mpleados-0olio,Nombre,2pellidos,Direccion,Numero,$eCo,6uesto,$ueldo,5omision,3ienda,)orari o values-F''HF,F$andraF,FIamirezF,F2ldama ;1HF,F@B1;F,F0emeninoF,F?endedoraF,F1'F,F4F,F4>MIF,F4'M &' hrsF insert mpleados-0olio,Nombre,2pellidos,Direccion,Numero,$eCo,6uesto,$ueldo,5omision,3ienda,)orari o values-F''BF,FIocioF,FIodriguezF,FGuarez B;>F,F&&&41HF,F0emeninoF,F?endedoraF,F1'F,F4F,F&M3F,F4'M &' hrsF insert mpleados-0olio,Nombre,2pellidos,Direccion,Numero,$eCo,6uesto,$ueldo,5omision,3ienda,)orari o values-F''@F,FNayelieF,F?azquezF,F=uana"uato ;;BF,F>H>B;>F,F0emeninoF,F+odegaF,F;1'F,F'F,F#ocal 4BF,F4'M&' hrsF insert mpleados-0olio,Nombre,2pellidos,Direccion,Numero,$eCo,6uesto,$ueldo,5omision,3ienda,)orari o values-F''F,F#uisF,F2lamanF,F=alicia 1H;F,F@B1>>F,F:asculinoF,F+odegaF,FB''F,F'F,F4>MIF,F4'M&' hrsF insert mpleados-0olio,Nombre,2pellidos,Direccion,Numero,$eCo,6uesto,$ueldo,5omision,3ienda,)orari o values-F'4'F,F2rmandoF,F2lamanF,F:onaco @BHF,F4&>;>@BF,F:asculinoF,F+odegaF,FB''F,F'F,F&M3F,F4'M &' hrsF
Ac t i vi da d9 .Ac t ua l i z arr e gi s t r os P r o v e e d o r e s . update 6roveedores set NombreOFG2NF (here Nombre O FGuanF update 6roveedores set 2pellidosOF:JI2#$F (here 2pellidosOF:oralesF update 6roveedores set mpresaOF5JI3F (here mpresaOF5ourtF update 6roveedores set 3elefono OFBBH;B;F (here 3elefonoOF@B@;H1>@F update 6roveedores set Direccion OF#JL2NJ 'HF (here DireccionOF#ozano 'HF update 6roveedores set bicacion OF#JNF (here bicacionOF#eonF update 6roveedores set 3ransporte OF3II$3IF (here 3ransporteOF3errestreF update 6roveedores set NombreOF:2I5J$F (here Nombre O F:arcosF update 6roveedores set 2pellidosOF:NDLF (here 2pellidosOF:endezF update 6roveedores set mpresaOF6AI:2 +I2$A#F (here mpresaOF6irma +rasilF update 6roveedores set Direccion OF0IIJ52IIA#$ >F (here DireccionOF0errocarriles >F update 6roveedores set NombreOFIJ$2IAJF (here Nombre O FIosarioF update 6roveedores set 2pellidosOF6I2#$F (here 2pellidosOF6eralesF update 6roveedores set mpresaOF#J+J $J#JF (here mpresaOF#obo $oloF update 6roveedores set Direccion OF$2N :A=# @HF (here DireccionOF$an :iguel @HF
P r o d u c t o . update 6roducto set :arcaOFK2IJ$$JF (here :arcaOFKarossoF update 6roducto set :arcaOF#J+J $J#JF (here :arcaOF#obo $oloF update 6roducto set :arcaOF6AI:2 +I2$A#F (here :arcaOF6irma +rasilF
update 6roducto set 5olor OF+#2N5JF (here 5olorOF+lancoF update 6roducto set 5olor OF:J$3JF (here 5olorOF:ostoF update 6roducto set 5olor OF2L#F (here 5olorOF2zulF update 6roducto set :aterial OF6A#F (here :aterialOF6ielF update 6roducto set :aterial OF$AN33A5JF (here :aterialOF$inteticoF
Suc ur s a l e s . update $ucursales set DireccionOF6#2L2 :2N##PF (here DireccionOF:anellyF update $ucursales set DireccionOF6#2L2 52#A0JINA2F (here DireccionOF5aliforniaF update $ucursales set DireccionOF6#2L2 $.5IA$6ANF (here DireccionOF$an 5rispinF update $ucursales set =erenteOF:A=# 5ILF (here =erenteOF:iguelF update $ucursales set 3elefonoOFB@H11HB1F (here DireccionOF6#2L2 $.5IA$6ANF
Vent as . update ?entas set bicacionOF:ostradorF (here bicacionOF+odegaF update ?entas set 0echa
Pedidos. update 6edidos set 6roductoOF44@F (here Ad6edidoOF''4F update 6edidos set 6roductoOF@'&F (here Ad6edidoOF''&F update 6edidos set 6roductoOFH;B>F (here Ad6edidoOF''>F
update 6edidos set 5antidadOF;1F (here Ad6edidoOF''4F update 6edidos set 5antidadOF@'F (here Ad6edidoOF''&F update 6edidos set 5antidadOFHBF (here Ad6edidoOF''>F
* Empl e a dos update mpleados set NombreOF:A=#F (here Nombre O F:iguelF update mpleados set 2pellidosOF5ILF (here 2pellidosOF5ruzF update mpleados set Direccion OFGILF (here DireccionOFGerez HB1F update mpleados set NombreOF623IA5A2F (here Nombre O F6atriciaF update mpleados set 2pellidosOF)IN2NDLF (here 2pellidosOF)ernandezF update mpleados set Direccion OFGIL HBHF (here DireccionOFGerez HBHF update mpleados set NombreOF:2IA2F (here Nombre O F:ariaF update mpleados set 2pellidosOF?2L%LF (here 2pellidosOF?azquezF update mpleados set Direccion OF0#A5A2NJF (here DireccionOF0eliciano 1HBF
Ac t i vi da d1 0 .El i mi na rr e l a c i one s drop table mpleados<$ucursales drop table 6roveedores<6edidos drop table 6roveedores<6roducto drop table $ucursales<6roveedores drop table $ucursales
Ac t i vi da d1 1 .El i mi na rr e gi s t r os 5on las sentencias en $%# $erver Anserta > nuevas !las completas. limina las > !las completas
Ac t i vi da d1 2 .El i mi na rba s ededa t o s :ostrar el resultado
Debe cambiar de qué base está usando, o si no, no podrá eliminar la base de datos.
drop database 5alzado6atris8
Co nc l us i ó n #a empresa se puede satisfacer por medio de la base de datos, que se le entrega para poder ayudar a ser más organizada y llevar un me"or control del almacén, este programa pude ser empleada en otra zapatería solo se tiene que poner los datos de la nueva empresa.