Ver Mensaje Individual
  #6  
Antiguo 16-11-2005
Avatar de epuigdef
epuigdef epuigdef is offline
Miembro
 
Registrado: jul 2005
Posts: 196
Reputación: 21
epuigdef Va por buen camino
Entonces prueba lo siguiente:

SELECT *
FROM Catalogo INNER JOIN (
Detalle inner join Encabezado
ON Detalle
.Numero_Transacion = Encabezado.Numero_Transacion
)
ON Catalogo.Cuenta = Detalle.
Cuenta
where

format(Detalle.fecha_transacion, 'yyyyMMdd') >=
format(:pfecha_inicial, 'yyyyMMdd')
and

format(Detalle.fecha_transacion, 'yyyyMMdd) <=
format(:pfecha_final, 'yyyyMMdd')
and Encabezado.Nulo =
'NO'
order by Detalle.Cuenta, Detalle.fecha_transacion;
Responder Con Cita