Ver Mensaje Individual
  #5  
Antiguo 24-05-2011
abelg abelg is offline
Miembro
 
Registrado: jul 2004
Posts: 50
Reputación: 20
abelg Va por buen camino
Si lo que quieres es mostrar las facturas solamente entonces esto te quedará espero bien:

Código SQL [-]
select distinct F.* 
from FACTURAS F
       inner join DETALLE D on D.FACTURA = F.ID_FACTURA
       inner join PRESTA P on D.PRESTA = P.ID_PRESTA
where P.PERSONAL= : per and ANULADA = '0'

Saludos.

solo modifique la consulta un poco tu la pones en tu componente como quieras por código o directo en su propiedad SQL.
Responder Con Cita