CREATE TABLE documents (document_type_code VARCHAR2, access_count NUMBER)

What document types do have more than 10000 total access number.
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") > 10000