I have a simple query that I want an average on. This is what it looks like now, and I want to know the average of my count per Opname_OpnameID.
SELECT Opname_O
You can use count(distinct) and not use a subquery:
count(distinct)
SELECT count(*) / count(distinct Opname_OpnameID) FROM behandeling