Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
FACT Data API Reader
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FACT
FACT Utils
FACT Data API Reader
Commits
54e7307f
Commit
54e7307f
authored
1 year ago
by
Riccardo Boero
Browse files
Options
Downloads
Patches
Plain Diff
fixed lfs query for jobs
parent
5a772722
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/FACT_jobs.jl
+1
-1
1 addition, 1 deletion
src/FACT_jobs.jl
with
1 addition
and
1 deletion
src/FACT_jobs.jl
+
1
−
1
View file @
54e7307f
...
@@ -135,7 +135,7 @@ function eu_lfs(conn::MySQL.Connection, selection::Dict)
...
@@ -135,7 +135,7 @@ function eu_lfs(conn::MySQL.Connection, selection::Dict)
# iterate over geo objects
# iterate over geo objects
for
id
in
geo_id
for
id
in
geo_id
# prepare query
# prepare query
query
=
"SELECT Nace as industry, ((EmpTh_Q1+EmpTh_Q2+EmpTh_Q3+EmpTh_Q4)/4)*1000 as jobs FROM LFS WHERE Year =
"
*
string
(
year
)
*
"
AND GeoID = '
"
*
id
*
"
';"
query
=
"SELECT Nace as industry, ((EmpTh_Q1+EmpTh_Q2+EmpTh_Q3+EmpTh_Q4)/4)*1000 as jobs FROM LFS WHERE Year =
$
year AND GeoID = '
$
id
';"
# execute
# execute
result
=
query_connection
(
conn
,
query
)
result
=
query_connection
(
conn
,
query
)
# add geo_id col
# add geo_id col
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment