Ver Mensaje Individual
  #6 (permalink)  
Antiguo 25/08/2009, 09:05
hug0
 
Fecha de Ingreso: febrero-2005
Mensajes: 33
Antigüedad: 19 años, 3 meses
Puntos: 0
Respuesta: Consulta con Inner JOIN?

sos un groso juarena, la consulta me quedo asi
SELECT *, Count(id_p) ctd_Comments FROM post inner join comments on post.id=comments.id_p Group by post.id order by post.id DESC limit 20;

y me trae todo sin necesidad de hacer dos consultas.
Mil gracias!