SELECT template_id FROM Documents GROUP BY template_id HAVING count(*)  >  1
What are the template ids of any templates used in more than a single document?
SELECT template_id FROM Documents GROUP BY template_id HAVING count ( * ) > 1
select template_id from documents group by template_id having count ( * ) > value
What are the template ids of any templates used in more than a single document ?