SELECT document_type_code FROM documents GROUP BY document_type_code HAVING sum(access_count)  >  10000
Return the codes of the document types that do not have a total access count of over 10000.
SELECT document_type_code FROM documents GROUP BY document_type_code HAVING sum ( access_count ) > 10000
select document_type_code from documents group by document_type_code having sum ( access_count ) > value
Return the codes of the document types that do not have a total access count of over 10000 .