1 View

This statement is used to create a new view based on one or more existing tables stored in database.

<view name='name'>
    <columns /> ?
    <select /> ?
    <union /> ?
</view>
Example
Copy
<view name='galmacen_v'>
    <columns>
        codigo, nomalm, tercer, tipdir, empcode, agrupa,
        recint, delega, depart, stkneg, fecval,  horini,
        horfin, tipast, fecalt, fecbaj, fecult,  feccon,
        estado
    </columns>

    <select>
        <columns>
            codigo, nomalm, tercer, tipdir, empcode, agrupa,
            recint, delega, depart, stkneg, fecval,  horini,
            horfin, tipast, fecalt, fecbaj, fecult,  feccon,
            estado
       </columns>
       <from table='galmacen' />
       <where>
           estado = 'A' AND
           <today /> BETWEEN fecalt AND <nvl>fecbaj, <today /></nvl>
       </where>
    </select>
</view>