Ver Mensaje Individual
  #4 (permalink)  
Antiguo 22/03/2007, 17:59
evoarte
 
Fecha de Ingreso: julio-2002
Mensajes: 813
Antigüedad: 21 años, 9 meses
Puntos: 2
Re: select con insert

buenas noches,
así ha quedado:

SELECT DISTINCT [tabla1].[id] AS CampoId INTO tablax
FROM tabla1
WHERE tabla1.id IN (SELECT cod_id2 FROM tabla2) OR tabla1.id IN (SELECT cod_id3 FROM tabla3) OR tabla1.id IN (SELECT cod_id4 FROM tabla4);

parece ok
gracias.