Ver Mensaje Individual
  #1  
Antiguo 10-09-2004
edy_aca edy_aca is offline
Miembro
 
Registrado: nov 2003
Posts: 74
Reputación: 21
edy_aca Va por buen camino
Smile existe un impedimento para hacer subconsultas de interbase en delphi?

existe un impedimento para hacer subconsultas de interbase en delphi?
veran puse este query:


SELECT * FROM SUMEMB where docto
in
(

SELECT DISTINCT docto FROM SUMEMB
INNER JOIN DETTRA ON (SUMEMB.DOCTO = DETTRA.NUMTRA) AND (SUMEMB.TDAORI = DETTRA.TDAORI) AND (SUMEMB.TDADES = DETTRA.TIENDA)
WHERE
((SUMEMB.FECHA >= '08/01/2004') AND
(SUMEMB.FECHA <= '08/31/2004') AND
(SERDOC = 'P')) AND
((EDOEMB = '') OR
(EDOEMB = 'E'))
)


gracias x su ayuda