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

Fixed QCEW SQL error in format of agglevelcode

parent 8df0f72e
No related branches found
No related tags found
No related merge requests found
......@@ -94,7 +94,7 @@ function us_qcew(conn::MySQL.Connection, selection::Dict)
end
# prepare query
query = "SELECT Naics as industry, (Jan_jobs+Feb_jobs+Mar_jobs+Apr_jobs+May_jobs+Jun_jobs+Jul_jobs+Aug_jobs+Sep_jobs+Oct_jobs+Nov_jobs+Dec_jobs)/12 as jobs FROM QCEW WHERE Year = "*string(year)*" AND GeoID = '"*full_id*"' AND Agglvl_code = "*string(agglvl_code)*";"
query = "SELECT Naics as industry, (Jan_jobs+Feb_jobs+Mar_jobs+Apr_jobs+May_jobs+Jun_jobs+Jul_jobs+Aug_jobs+Sep_jobs+Oct_jobs+Nov_jobs+Dec_jobs)/12 as jobs FROM QCEW WHERE Year = "*string(year)*" AND GeoID = '"*full_id*"' AND Agglvl_code = '"*string(agglvl_code)*"';"
# execute
result = query_connection(conn, query)
# Check if the 'industry' column exists
......
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