Das isses:
SELECT
...
,COUNT(DISTINCT IF(kon1.gruppen_id=0 , NULL, kon1.gruppen_id)) anz_gruppen
,COUNT(DISTINCT IF(kon1.gruppen_id>0 , NULL, kon1.besucher_id)) anz_einzel
Kalle
Das isses:
SELECT
...
,COUNT(DISTINCT IF(kon1.gruppen_id=0 , NULL, kon1.gruppen_id)) anz_gruppen
,COUNT(DISTINCT IF(kon1.gruppen_id>0 , NULL, kon1.besucher_id)) anz_einzel
Kalle