<query id="getTotalCommentListWithinMember" action="select">
    <tables>
        <table name="comments" alias="comments" />
        <table name="member" alias="member" />
    </tables>
    <columns>
        <column name="comments.is_secret" />
        <column name="count(*)" alias="count" />
    </columns>
    <conditions>
        <condition operation="like" column="member.user_id" var="s_user_id" notnull="notnull" />
        <condition operation="equal" column="member.member_srl" var="comments.member_srl" notnull="notnull" pipe="and" />
        <condition operation="equal" column="comments.is_secret" var="s_is_secret" pipe="and" />
        <group pipe="and">
            <condition operation="like" column="comments.content" var="s_content" />
            <condition operation="like" column="comments.user_name" var="s_user_name" pipe="or" />
            <condition operation="like" column="comments.nick_name" var="s_nick_name" pipe="or" />
            <condition operation="like" column="comments.email_address" var="s_email_address" pipe="or" />
            <condition operation="like" column="comments.homepage" var="s_homepage" pipe="or" />
            <condition operation="like_prefix" column="comments.regdate" var="s_regdate" pipe="or" />
            <condition operation="like_prefix" column="comments.last_update" var="s_last_upate" pipe="or" />
            <condition operation="like_prefix" column="comments.ipaddress" var="s_ipaddress" pipe="or" />
        </group>
    </conditions>
	<groups>
		<group column="comments.is_secret" />
	</groups>
</query>
