Si desea obtener el recuento promedio, presumiblemente de toda la tabla, haga exactamente eso:
SELECT AVG(cnt) AS total_avg
FROM (
SELECT COUNT(*) AS cnt FROM behandeling GROUP BY Opname_OpnameID
) t;
Si desea obtener el recuento promedio, presumiblemente de toda la tabla, haga exactamente eso:
SELECT AVG(cnt) AS total_avg
FROM (
SELECT COUNT(*) AS cnt FROM behandeling GROUP BY Opname_OpnameID
) t;