Ver Mensaje Individual
  #2 (permalink)  
Antiguo 30/06/2008, 05:04
Avatar de Taribo007
Taribo007
 
Fecha de Ingreso: agosto-2007
Mensajes: 1.338
Antigüedad: 16 años, 9 meses
Puntos: 18
Respuesta: Count group by

Prueba asi:

SELECT Count([TABLA_FRIGORIFICOS ALMACENADOS].IdSector) AS CuentaDeIdSector, Sectores.IdSector
FROM [TABLA_FRIGORIFICOS ALMACENADOS] RIGHT JOIN Sectores ON [TABLA_FRIGORIFICOS ALMACENADOS].IdSector = Sectores.IdSector
GROUP BY Sectores.IdSector;

UN saludo