Ver Mensaje Individual
  #2 (permalink)  
Antiguo 16/07/2010, 13:38
Avatar de minkweb
minkweb
 
Fecha de Ingreso: septiembre-2005
Mensajes: 443
Antigüedad: 18 años, 7 meses
Puntos: 14
Respuesta: Coger info + count

Código MySQL:
Ver original
  1. SELECT t1.topic_id, count(t1.topic_id) AS total, t2.nombre AS nombre
  2. FROM tabla_1 AS t1
  3. INNER JOIN tabla_2 AS t2 ON t2.topic_id=t1.topic_id
  4. GROUP BY t1.topic_id

Prueba Asi
__________________
Juegos
Juegos iphone