Skip to content

Commit 9351f17

Browse files
committed
ext normalized
1 parent becdd2b commit 9351f17

File tree

2 files changed

+14
-28
lines changed

2 files changed

+14
-28
lines changed

videoclub.sql

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ create table direccion (
2222
calle varchar(50) not null,
2323
numero varchar(10) not null,
2424
piso integer not null,
25-
letra varchar(10) not null,
26-
ext varchar(10) not null
25+
letra varchar(10) not null
2726
);
2827

2928
create table alquiler (
@@ -639,8 +638,8 @@ from tmp_videoclub;
639638

640639
create unique index dni_sin_repetir on socio (lower(dni));
641640

642-
insert into direccion (num_socio, codigo_postal, calle, numero, piso, letra, ext)
643-
select distinct num_socio, cast (codigo_postal as integer), cast (calle as varchar(50)), numero, cast (piso as integer), cast(letra as varchar(10)), cast(ext as varchar(10))
641+
insert into direccion (num_socio, codigo_postal, calle, numero, piso, letra)
642+
select distinct num_socio, cast (codigo_postal as integer), cast (calle as varchar(50)), numero, cast (piso as integer), cast(letra as varchar(10))
644643
from tmp_videoclub t
645644
inner join socio s on s.dni = t.dni;
646645

videoclub_diagram.drawio

Lines changed: 11 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<mxfile host="app.diagrams.net" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36" version="26.1.0">
22
<diagram name="Página-1" id="K_eJpta95Gfe3DVj1639">
3-
<mxGraphModel dx="1758" dy="708" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
3+
<mxGraphModel dx="1194" dy="566" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
44
<root>
55
<mxCell id="0" />
66
<mxCell id="1" parent="0" />
@@ -112,7 +112,7 @@
112112
</mxGeometry>
113113
</mxCell>
114114
<mxCell id="qvSomuMc7u_32kP9nVwW-26" value="direccion" style="shape=table;startSize=30;container=1;collapsible=1;childLayout=tableLayout;fixedRows=1;rowLines=0;fontStyle=1;align=center;resizeLast=1;html=1;labelBackgroundColor=none;fillColor=#FAE5C7;strokeColor=#0F8B8D;fontColor=#143642;" parent="1" vertex="1">
115-
<mxGeometry x="30" y="340" width="180" height="270" as="geometry" />
115+
<mxGeometry x="30" y="340" width="180" height="240" as="geometry" />
116116
</mxCell>
117117
<mxCell id="qvSomuMc7u_32kP9nVwW-27" value="" style="shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;fillColor=none;collapsible=0;dropTarget=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;top=0;left=0;right=0;bottom=1;labelBackgroundColor=none;strokeColor=#0F8B8D;fontColor=#143642;" parent="qvSomuMc7u_32kP9nVwW-26" vertex="1">
118118
<mxGeometry y="30" width="180" height="30" as="geometry" />
@@ -205,19 +205,6 @@
205205
<mxRectangle width="150" height="30" as="alternateBounds" />
206206
</mxGeometry>
207207
</mxCell>
208-
<mxCell id="WdJk57RfHp4uRWZfefAT-4" style="shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;fillColor=none;collapsible=0;dropTarget=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;top=0;left=0;right=0;bottom=0;labelBackgroundColor=none;strokeColor=#0F8B8D;fontColor=#143642;" parent="qvSomuMc7u_32kP9nVwW-26" vertex="1">
209-
<mxGeometry y="240" width="180" height="30" as="geometry" />
210-
</mxCell>
211-
<mxCell id="WdJk57RfHp4uRWZfefAT-5" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;editable=1;overflow=hidden;whiteSpace=wrap;html=1;labelBackgroundColor=none;strokeColor=#0F8B8D;fontColor=#143642;" parent="WdJk57RfHp4uRWZfefAT-4" vertex="1">
212-
<mxGeometry width="30" height="30" as="geometry">
213-
<mxRectangle width="30" height="30" as="alternateBounds" />
214-
</mxGeometry>
215-
</mxCell>
216-
<mxCell id="WdJk57RfHp4uRWZfefAT-6" value="ext (texto10)" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=6;overflow=hidden;whiteSpace=wrap;html=1;labelBackgroundColor=none;strokeColor=#0F8B8D;fontColor=#143642;" parent="WdJk57RfHp4uRWZfefAT-4" vertex="1">
217-
<mxGeometry x="30" width="150" height="30" as="geometry">
218-
<mxRectangle width="150" height="30" as="alternateBounds" />
219-
</mxGeometry>
220-
</mxCell>
221208
<mxCell id="qvSomuMc7u_32kP9nVwW-62" value="pelicula" style="shape=table;startSize=30;container=1;collapsible=1;childLayout=tableLayout;fixedRows=1;rowLines=0;fontStyle=1;align=center;resizeLast=1;html=1;labelBackgroundColor=none;fillColor=#FAE5C7;strokeColor=#0F8B8D;fontColor=#143642;" parent="1" vertex="1">
222209
<mxGeometry x="550" y="160" width="180" height="180" as="geometry" />
223210
</mxCell>
@@ -700,39 +687,39 @@
700687
<mxRectangle width="210" height="30" as="alternateBounds" />
701688
</mxGeometry>
702689
</mxCell>
703-
<mxCell id="m3n9hV4a3azKOOt0Kzd0-30" value="director" style="shape=table;startSize=30;container=1;collapsible=1;childLayout=tableLayout;fixedRows=1;rowLines=0;fontStyle=1;align=center;resizeLast=1;html=1;labelBackgroundColor=none;fillColor=#FAE5C7;strokeColor=#0F8B8D;fontColor=#143642;" vertex="1" parent="1">
690+
<mxCell id="m3n9hV4a3azKOOt0Kzd0-30" value="director" style="shape=table;startSize=30;container=1;collapsible=1;childLayout=tableLayout;fixedRows=1;rowLines=0;fontStyle=1;align=center;resizeLast=1;html=1;labelBackgroundColor=none;fillColor=#FAE5C7;strokeColor=#0F8B8D;fontColor=#143642;" parent="1" vertex="1">
704691
<mxGeometry x="550" y="380" width="180" height="90" as="geometry" />
705692
</mxCell>
706-
<mxCell id="m3n9hV4a3azKOOt0Kzd0-31" value="" style="shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;fillColor=none;collapsible=0;dropTarget=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;top=0;left=0;right=0;bottom=1;labelBackgroundColor=none;strokeColor=#0F8B8D;fontColor=#143642;" vertex="1" parent="m3n9hV4a3azKOOt0Kzd0-30">
693+
<mxCell id="m3n9hV4a3azKOOt0Kzd0-31" value="" style="shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;fillColor=none;collapsible=0;dropTarget=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;top=0;left=0;right=0;bottom=1;labelBackgroundColor=none;strokeColor=#0F8B8D;fontColor=#143642;" parent="m3n9hV4a3azKOOt0Kzd0-30" vertex="1">
707694
<mxGeometry y="30" width="180" height="30" as="geometry" />
708695
</mxCell>
709-
<mxCell id="m3n9hV4a3azKOOt0Kzd0-32" value="PK" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;fontStyle=1;overflow=hidden;whiteSpace=wrap;html=1;labelBackgroundColor=none;strokeColor=#0F8B8D;fontColor=#143642;" vertex="1" parent="m3n9hV4a3azKOOt0Kzd0-31">
696+
<mxCell id="m3n9hV4a3azKOOt0Kzd0-32" value="PK" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;fontStyle=1;overflow=hidden;whiteSpace=wrap;html=1;labelBackgroundColor=none;strokeColor=#0F8B8D;fontColor=#143642;" parent="m3n9hV4a3azKOOt0Kzd0-31" vertex="1">
710697
<mxGeometry width="30" height="30" as="geometry">
711698
<mxRectangle width="30" height="30" as="alternateBounds" />
712699
</mxGeometry>
713700
</mxCell>
714-
<mxCell id="m3n9hV4a3azKOOt0Kzd0-33" value="id (numerico)" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=6;fontStyle=5;overflow=hidden;whiteSpace=wrap;html=1;labelBackgroundColor=none;strokeColor=#0F8B8D;fontColor=#143642;" vertex="1" parent="m3n9hV4a3azKOOt0Kzd0-31">
701+
<mxCell id="m3n9hV4a3azKOOt0Kzd0-33" value="id (numerico)" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=6;fontStyle=5;overflow=hidden;whiteSpace=wrap;html=1;labelBackgroundColor=none;strokeColor=#0F8B8D;fontColor=#143642;" parent="m3n9hV4a3azKOOt0Kzd0-31" vertex="1">
715702
<mxGeometry x="30" width="150" height="30" as="geometry">
716703
<mxRectangle width="150" height="30" as="alternateBounds" />
717704
</mxGeometry>
718705
</mxCell>
719-
<mxCell id="m3n9hV4a3azKOOt0Kzd0-34" value="" style="shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;fillColor=none;collapsible=0;dropTarget=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;top=0;left=0;right=0;bottom=0;labelBackgroundColor=none;strokeColor=#0F8B8D;fontColor=#143642;" vertex="1" parent="m3n9hV4a3azKOOt0Kzd0-30">
706+
<mxCell id="m3n9hV4a3azKOOt0Kzd0-34" value="" style="shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;fillColor=none;collapsible=0;dropTarget=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;top=0;left=0;right=0;bottom=0;labelBackgroundColor=none;strokeColor=#0F8B8D;fontColor=#143642;" parent="m3n9hV4a3azKOOt0Kzd0-30" vertex="1">
720707
<mxGeometry y="60" width="180" height="30" as="geometry" />
721708
</mxCell>
722-
<mxCell id="m3n9hV4a3azKOOt0Kzd0-35" value="" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;editable=1;overflow=hidden;whiteSpace=wrap;html=1;labelBackgroundColor=none;strokeColor=#0F8B8D;fontColor=#143642;" vertex="1" parent="m3n9hV4a3azKOOt0Kzd0-34">
709+
<mxCell id="m3n9hV4a3azKOOt0Kzd0-35" value="" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;editable=1;overflow=hidden;whiteSpace=wrap;html=1;labelBackgroundColor=none;strokeColor=#0F8B8D;fontColor=#143642;" parent="m3n9hV4a3azKOOt0Kzd0-34" vertex="1">
723710
<mxGeometry width="30" height="30" as="geometry">
724711
<mxRectangle width="30" height="30" as="alternateBounds" />
725712
</mxGeometry>
726713
</mxCell>
727-
<mxCell id="m3n9hV4a3azKOOt0Kzd0-36" value="nombre" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=6;overflow=hidden;whiteSpace=wrap;html=1;labelBackgroundColor=none;strokeColor=#0F8B8D;fontColor=#143642;" vertex="1" parent="m3n9hV4a3azKOOt0Kzd0-34">
714+
<mxCell id="m3n9hV4a3azKOOt0Kzd0-36" value="nombre" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=6;overflow=hidden;whiteSpace=wrap;html=1;labelBackgroundColor=none;strokeColor=#0F8B8D;fontColor=#143642;" parent="m3n9hV4a3azKOOt0Kzd0-34" vertex="1">
728715
<mxGeometry x="30" width="150" height="30" as="geometry">
729716
<mxRectangle width="150" height="30" as="alternateBounds" />
730717
</mxGeometry>
731718
</mxCell>
732-
<mxCell id="m3n9hV4a3azKOOt0Kzd0-44" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=1;entryY=0.5;entryDx=0;entryDy=0;exitX=1;exitY=0.5;exitDx=0;exitDy=0;labelBackgroundColor=none;strokeColor=#A8201A;fontColor=default;startArrow=ERone;startFill=0;endArrow=ERmany;endFill=0;" edge="1" parent="1" source="m3n9hV4a3azKOOt0Kzd0-31" target="qvSomuMc7u_32kP9nVwW-72">
719+
<mxCell id="m3n9hV4a3azKOOt0Kzd0-44" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=1;entryY=0.5;entryDx=0;entryDy=0;exitX=1;exitY=0.5;exitDx=0;exitDy=0;labelBackgroundColor=none;strokeColor=#A8201A;fontColor=default;startArrow=ERone;startFill=0;endArrow=ERmany;endFill=0;" parent="1" source="m3n9hV4a3azKOOt0Kzd0-31" target="qvSomuMc7u_32kP9nVwW-72" edge="1">
733720
<mxGeometry relative="1" as="geometry" />
734721
</mxCell>
735-
<mxCell id="m3n9hV4a3azKOOt0Kzd0-45" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=1;entryY=0.5;entryDx=0;entryDy=0;exitX=1;exitY=0.5;exitDx=0;exitDy=0;labelBackgroundColor=none;strokeColor=#A8201A;fontColor=default;startArrow=ERone;startFill=0;endArrow=ERmany;endFill=0;" edge="1" parent="1" source="5T-le4X5tDxyJNb8FfnZ-2" target="qvSomuMc7u_32kP9nVwW-69">
722+
<mxCell id="m3n9hV4a3azKOOt0Kzd0-45" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=1;entryY=0.5;entryDx=0;entryDy=0;exitX=1;exitY=0.5;exitDx=0;exitDy=0;labelBackgroundColor=none;strokeColor=#A8201A;fontColor=default;startArrow=ERone;startFill=0;endArrow=ERmany;endFill=0;" parent="1" source="5T-le4X5tDxyJNb8FfnZ-2" target="qvSomuMc7u_32kP9nVwW-69" edge="1">
736723
<mxGeometry relative="1" as="geometry">
737724
<Array as="points">
738725
<mxPoint x="790" y="555" />

0 commit comments

Comments
 (0)