@@ -99,6 +99,12 @@ function us_qcew(conn::MySQL.Connection, selection::Dict)
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
if!(:industryinnames(result))
println("No data returned for query with GeoID = $full_id and Year = $year and AND Agglvl_code = $agglvl_code.")
# Initialize `result` with the expected columns but no rows