@ -78,7 +78,7 @@
(
SELECT
e.enterprise_id,
SUBSTRING( e.district, 1, 8 ) AS district,
SUBSTRING( e.district, 1, 7 ) AS district,
CASE
WHEN f.USC_CODE IS NOT NULL
@ -96,7 +96,7 @@
) t
GROUP BY
enterprise_id
) p ON SUBSTRING( a.county, 1, 8 ) = p.district
) p ON SUBSTRING( a.county, 1, 7 ) = p.district
a.county
ORDER BY