Ver Mensaje Individual
  #3 (permalink)  
Antiguo 10/03/2004, 09:42
Teri
 
Fecha de Ingreso: abril-2003
Ubicación: Madrid
Mensajes: 707
Antigüedad: 21 años, 1 mes
Puntos: 0
Claro que la hay, utiliza una select de agrupamiento

Select id_x1, titu_x1, count(x2.id) AS t_reg, count(x3.id) AS t_reg2 FROM x1
LEFT JOIN x2 ON x1.id_x1 = x2.id
LEFT JOIN x3 ON x1.id_x1 = x3.Cat
Where x1 = 1
GROUP BY id_x1, titu_x1

Los nombres de las tablas... bueno, ya sabes...