What document types do have more than 10000 total access number.
CREATE TABLE documents (document_type_code VARCHAR, access_count INTEGER)
[SQL] SELECT document_type_code FROM documents GROUP BY document_type_code HAVING SUM(access_count) > 10000 [/SQL]