Skip to content
Snippets Groups Projects
Commit 54e7307f authored by Riccardo Boero's avatar Riccardo Boero :innocent:
Browse files

fixed lfs query for jobs

parent 5a772722
No related branches found
No related tags found
No related merge requests found
......@@ -135,7 +135,7 @@ function eu_lfs(conn::MySQL.Connection, selection::Dict)
# iterate over geo objects
for id in geo_id
# 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
result = query_connection(conn, query)
# add geo_id col
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment