Server Statistics heading SELECT B.name, count(A.id) as total, sum(A.price) as total_amt from %%AGILE_DB_PREFIX%%service A inner join %%AGILE_DB_PREFIX%%host_server B on B.id=A.host_server_id A.site_id = %%DEFAULT_SITE%% and A.active=1 and A.type LIKE '%host%' GROUP BY name ORDER BY total_amt DESC 0 Server name true true true false false SELECT B.name, A.sku, count(A.id) as total, sum(A.price) as total_amt from %%AGILE_DB_PREFIX%%service A inner join %%AGILE_DB_PREFIX%%host_server B on B.id=A.host_server_id A.site_id = %%DEFAULT_SITE%% and A.active=1 AND A.type LIKE '%host%' GROUP BY sku ORDER BY sku DESC 30 SKU sku true Total Services total true num