HAVING COUNT(*) 2014-07-26 code postgresqlsql SELECT section_id FROM section_relations GROUP BY section_id HAVING COUNT(*) > 500;