<query id="getGroupsExtraVars" action="select">
    <tables>
        <table name="document_extra_vars" />
    </tables>
    <columns>
        <column name="module_srl" alias="module_srl" />
        <column name="var_idx" alias="idx" />
        <column name="eid" alias="eid" />
    </columns>
    <conditions>
        <condition operation="equal" column="module_srl" var="module_srl" filter="number" notnull="notnull" />
        <condition operation="notin" column="var_idx" var="var_idx" filter="number" pipe="and" />
        <condition operation="equal" column="eid" var="eid" pipe="and" />
    </conditions>
	<groups>
		<group column="module_srl" />
		<group column="var_idx" />
		<group column="eid" />
	</groups>
    <navigation>
        <index var="sort_index" default="var_idx" order="asc" />
    </navigation>
</query>
