Código SQL [-] select sum(imporfac) from clidocum where tipomov='FM' and fechafac<='31.10.2005' and fechafac>='01.01.2004' and /*15 Dìas Vencidos*/ cast('31.10.2005' as date)-fechafac between 15 and 30
select sum(imporfac) from clidocum where tipomov='FM' and fechafac<='31.10.2005' and fechafac>='01.01.2004' and /*15 Dìas Vencidos*/ cast('31.10.2005' as date)-fechafac between 15 and 30