<query id="getSiteUpdatedTime" action="select">
    <tables>
        <table name="documents" alias="doc" />
        <table name="syndication_except_modules" alias="except_module"/>
    </tables>
    <columns>
        <column name="max(doc.last_update)" alias="last_update" />
    </columns>
    <conditions>
        <condition operation="equal" column="doc.module_srl" var="module_srl" filter="number" />
        <condition operation="more" column="doc.last_update" var="start_date" filter="number" pipe="and" />
        <condition operation="less" column="doc.last_update" var="end_date" filter="number" pipe="and" />
        <condition operation="notin" column="doc.module_srl" default="except_module.module_srl" pipe="and" />
    </conditions>
</query>
