Ver Mensaje Individual
  #4  
Antiguo 08-11-2006
tefots tefots is offline
Miembro
 
Registrado: feb 2005
Posts: 108
Reputación: 22
tefots Va por buen camino
el problema es q interbase/firebird no deja hacer un select despues de un from , con lo que el subquery hay que hacero dentro del where.

Creo que la consulta en firebird/interbase deberia ser algo asi.

select count(*) from tabla1
where tabla1.codigo in (select distinct tabla2..numero from tabla2 where tabla2.codigo=tabla1.codigo) and tabla1.estudio=8683

saludos.
Responder Con Cita