<query id="getCommentPoint" action="select">
	<tables>
		<table name="comments" />
		<table name="documents" type="left outer join" >
			<conditions>
				<condition operation="equal" column="comments.status" default="1" pipe="and" />
				<condition operation="equal" column="comments.document_srl" default="documents.document_srl" pipe="and" />
			</conditions>
		</table>
	</tables>
	<columns>
		<column name="comments.module_srl" />
		<column name="comments.member_srl" />
		<column name="count(*)" alias="count" />
	</columns>
	<conditions>
		<condition operation="notequal" column="comments.member_srl" default="0" />
		<condition operation="notequal" column="comments.member_srl" default="documents.member_srl" pipe="and" />
	</conditions>
	<groups>
		<group column="comments.module_srl" />
		<group column="comments.member_srl" />
	</groups>
</query>
