Pourquoi a--on plus d'enregistrements SS EPCI que SS (communal) ?
select *
from total.bilan_comm_v4_secten1
where
an = 2015
-- and id_polluant = 131
-- and code_cat_energie = 7 -- Autres non renouvelables
and id_comm in ( -- Communes de CA Durance Lubéron
select distinct id_comm
from commun.tpk_commune_2015_2016
where lower(nom_epci_2017) like '%lubéron%'
)
order by ss_epci, ss, id_comm, code_cat_energie
Pourquoi a--on plus d'enregistrements SS EPCI que SS (communal) ?
select * from total.bilan_comm_v4_secten1 where an = 2015 -- and id_polluant = 131 -- and code_cat_energie = 7 -- Autres non renouvelables and id_comm in ( -- Communes de CA Durance Lubéron select distinct id_comm from commun.tpk_commune_2015_2016 where lower(nom_epci_2017) like '%lubéron%' ) order by ss_epci, ss, id_comm, code_cat_energie