Ver Mensaje Individual
  #2 (permalink)  
Antiguo 20/05/2008, 08:29
oscarpt2184
 
Fecha de Ingreso: abril-2007
Mensajes: 63
Antigüedad: 17 años
Puntos: 0
Respuesta: intruccion con TOP, LIMIT- ayuda

disculpen peo la utima instruccion tiene errores asi es esta.
SELECT anuncio.idanun,anuncio.razonsocial, SubQuery.distrito

FROM anuncio INNER JOIN (SELECT * FROM anunciodet where distrito='LOS OLIVOS' limit 1 ) AS SubQuery ON anuncio.idanun= SubQuery.idanun
WHERE anuncio.razonsocial ILIKE '%co%' limit 10