<query id="getSiteCounterLogStatus" action="select">
    <tables>
        <table name="counter_log" />
    </tables>
    <columns>
        <column name="count(*)" alias="count" />
    </columns>
    <conditions>
        <condition operation="equal" column="site_srl" var="site_srl" notnull="notnull" pipe="and" />
        <condition operation="more" column="regdate" var="start_date" notnull="notnull" pipe="and" />
        <condition operation="less" column="regdate" var="end_date" notnull="notnull" pipe="and" />
    </conditions>
</query>
