Hallo Leute,
hat jemand eine Idee wie man folgendes Skript vereinfachen könnte?
hat jemand eine Idee wie man folgendes Skript vereinfachen könnte?
Code:
select c.isoname as country, round(txt_sum / all_sum * 100,2) as anteil_2_6_7 from j_country c, (select country_id,sum(anzahl) as all_sum from auto_aboueberwachung group by country_id ) a , (select country_id, sum(anzahl) as txt_sum from auto_aboueberwachung where txtype_id in (2,6,7) group by country_id) b where a.country_id = b.country_id and c.id = a.country_id ;
Comment