Ver Mensaje Individual
  #2 (permalink)  
Antiguo 22/04/2010, 12:20
Avatar de huesos52
huesos52
Colaborador
 
Fecha de Ingreso: febrero-2009
Ubicación: Manizales - Colombia
Mensajes: 5.980
Antigüedad: 16 años, 1 mes
Puntos: 360
Respuesta: mostrar campos nombre segun id

Código SQL:
Ver original
  1. SELECT
  2. id_item AS id,
  3. bol_num AS boletin,
  4. bc.name_cat nombre_categoria AS categoria,
  5. bi.name_item AS articulo
  6. FROM
  7. bol_categoria AS bc
  8. INNER JOIN
  9. bol_items  bi
  10. ON
  11. bi.id_cat=bc.id_cat
  12. WHERE bol_num > 145 ORDER BY id_item DESC


saludos
__________________
Without data, You are another person with an opinion.
W. Edwads Deming