SELECT Entidades.CodEnt, Entidades.NombreEntidad, Centros.IdCentros, Centros.NombreCentro, Computadoras.IDCENTRO, COUNT(Computadoras.Denom) AS CuentaDeDenom, cc_PCenRedTotal.CuentaDeEnRed, cc_CantServPC.CuentaDeServidor AS CantServPC, cc_CantServProf.CuentaDeServidor AS CantServProf, Conectividad.EnlaceConmutado, Conectividad.VelocEnlArrend, Conectividad.CorreoNac, Conectividad.CorreoInter, Conectividad.UserNavNac, Conectividad.UserInternet, Conectividad.AccRemCorreo, Conectividad.AccRemInternet, Conectividad.URL
FROM Entidades
INNER JOIN (((((Centros LEFT JOIN [SELECT cc_ServidoresPC.IDCENTRO, COUNT(cc_ServidoresPC.Servidor) AS CuentaDeServidor
FROM (SELECT Computadoras.IDCENTRO, Computadoras.Servidor
FROM Computadoras
WHERE (((Computadoras.Servidor)="PC Server")))
AS cc_ServidoresPC
GROUP BY cc_ServidoresPC.IDCENTRO]. AS cc_CantServPC ON Centros.IdCentros = cc_CantServPC.IDCENTRO)
LEFT JOIN [SELECT cc_ServidoresProf.IDCENTRO, COUNT(cc_ServidoresProf.Servidor) AS CuentaDeServidor
FROM (SELECT Computadoras.IDCENTRO, Computadoras.Servidor
FROM Computadoras
WHERE (((Computadoras.Servidor)="Profesional"))) AS cc_ServidoresProf
GROUP BY cc_ServidoresProf.IDCENTRO]. AS cc_CantServProf ON Centros.IdCentros = cc_CantServProf.IDCENTRO)
LEFT JOIN [SELECT cc_PCenRed.IDCENTRO, COUNT(cc_PCenRed.EnRed) AS CuentaDeEnRed
FROM (SELECT Computadoras.IDCENTRO, Computadoras.EnRed
FROM Computadoras
WHERE (((Computadoras.EnRed)=-1))) AS cc_PCenRed
GROUP BY cc_PCenRed.IDCENTRO]. AS cc_PCenRedTotal ON Centros.IdCentros = cc_PCenRedTotal.IDCENTRO)
LEFT JOIN Computadoras ON Centros.IdCentros = Computadoras.IDCENTRO)
LEFT JOIN Conectividad ON Centros.IdCentros = Conectividad.IdCentros) ON Entidades.CodEnt = Centros.CODENT
GROUP BY Entidades.CodEnt, Entidades.NombreEntidad, Centros.IdCentros, Centros.NombreCentro, Computadoras.IDCENTRO, cc_PCenRedTotal.CuentaDeEnRed, cc_CantServPC.CuentaDeServidor, cc_CantServProf.CuentaDeServidor, Conectividad.EnlaceConmutado, Conectividad.VelocEnlArrend, Conectividad.CorreoNac, Conectividad.CorreoInter, Conectividad.UserNavNac, Conectividad.UserInternet, Conectividad.AccRemCorreo, Conectividad.AccRemInternet, Conectividad.URL
ORDER BY Entidades.CodEnt, Centros.IdCentros;