Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
geoelectoral-datos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
adsib
geoelectoral-datos
Commits
160caed0
Commit
160caed0
authored
Oct 17, 2014
by
Richard Rojas Mamani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
corrigiendo datos de los partidos
parent
1a4627a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
11 deletions
+16
-11
scripts/municipios_2009.sh
scripts/municipios_2009.sh
+16
-11
No files found.
scripts/municipios_2009.sh
100644 → 100755
View file @
160caed0
...
@@ -48,7 +48,7 @@ function resultados_muni {
...
@@ -48,7 +48,7 @@ function resultados_muni {
psql
-E
-U
$PGUSER
-q
-t
-o
/tmp/
$TABLA
.tmp.sql
-d
$BD_GEOELECTORAL
<<
EOF
psql
-E
-U
$PGUSER
-q
-t
-o
/tmp/
$TABLA
.tmp.sql
-d
$BD_GEOELECTORAL
<<
EOF
SELECT
SELECT
'(' ||
$1
|| ', ' || -- id_eleccion
'(' ||
$1
|| ', ' || -- id_eleccion
(SELECT id_candidato FROM candidatos WHERE id_partido=
$2
LIMIT 1) || ', ' || -- id_candidato
(SELECT id_candidato FROM candidatos WHERE id_partido=
$2
AND id_eleccion=
$1
LIMIT 1) || ', ' || -- id_candidato
$2
|| ', ' || -- id_partido
$2
|| ', ' || -- id_partido
$3
|| ', ' || -- id_tipo_partido
$3
|| ', ' || -- id_tipo_partido
d.id_dpa || ', ' || -- id_dpa
d.id_dpa || ', ' || -- id_dpa
...
@@ -65,20 +65,25 @@ rm /tmp/$TABLA.tmp.sql
...
@@ -65,20 +65,25 @@ rm /tmp/$TABLA.tmp.sql
# reseter
# reseter
# PULSO 4
resultados_muni 10 4 1 1
"pulso"
"2009-12-06"
# MUSPA 3
resultados_muni 10 3 1 1
"muspa"
"2009-12-06"
# MAS 25
# MAS 25
resultados_muni 10 25 1 1
"mas"
"2009-12-06"
resultados_muni 10 25 1 1
"mas"
"2009-12-06"
# BSD 1
# PPB-CN 27
resultados_muni 10 1 1 1
"bsd"
"2009-12-06"
resultados_muni 10 27 1 1
"ppb-cn"
"2009-12-06"
# GENTE 2
resultados_muni 10 2 1 1
"gente"
"2009-12-06"
# AS 18
resultados_muni 10 18 1 1
"as"
"2009-12-06"
# UN 16
# UN 16
resultados_muni 10 16 1 1
"un"
"2009-12-06"
resultados_muni 10 16 1 1
"un"
"2009-12-06"
# AS 18
resultados_muni 10 18 1 1
"as"
"2009-12-06"
# MUSPA 3
resultados_muni 10 3 1 1
"muspa"
"2009-12-06"
# GENTE 2
resultados_muni 10 2 1 1
"gente"
"2009-12-06"
# PULSO 4
resultados_muni 10 4 1 1
"pulso"
"2009-12-06"
# BSD 1
resultados_muni 10 1 1 1
"bsd"
"2009-12-06"
# Eliminación de la tabla temporal $TABLA
# Eliminación de la tabla temporal $TABLA
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment