Database: cre_Doc_Template_Mgt
Question: Give the ids of documents that have between one and two paragraphs.
SQL:
SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*) BETWEEN 1 AND 2