Código SQL [-] Select facturaNro, (select sum(importe) from ventas where FechaFact between aram0 and aram1 and TipCom like :nombre) from ventas where FechaFact between aram0 and aram1 and TipCom like :nombre
Select facturaNro, (select sum(importe) from ventas where FechaFact between aram0 and aram1 and TipCom like :nombre) from ventas where FechaFact between aram0 and aram1 and TipCom like :nombre