Ver Mensaje Individual
  #2 (permalink)  
Antiguo 14/10/2009, 10:25
Avatar de huesos52
huesos52
Colaborador
 
Fecha de Ingreso: febrero-2009
Ubicación: Manizales - Colombia
Mensajes: 5.980
Antigüedad: 15 años, 2 meses
Puntos: 360
Respuesta: ayuda con una consulta entre tablas!!

Código sql:
Ver original
  1. SELECT  DISTINCT  c.id_ciudad , c.nombre FROM  
  2. ciudades c INNER JOIN bodega b  
  3. ON  c.id_ciudad= b.ciudad_id_ciudad
  4. WHERE b.estado_bodega IS NOT NULL;

Pruebala así
__________________
Without data, You are another person with an opinion.
W. Edwads Deming