Services By Customer and SKU SELECT DISTINCT A.id as account_id,company,CONCAT(first_name,' ', last_name) as name,email,username from %%AGILE_DB_PREFIX%%account A JOIN %%AGILE_DB_PREFIX%%service as B ON(B.account_id=A.id and B.active=1 AND B.price_type=1) A.site_id = %%DEFAULT_SITE%% GROUP BY account_id ORDER BY company DESC 0 account_id account_id false true true false Company: company true Name: name true E-mail: email true SELECT DISTINCT B.sku, B.account_id as account_id, count(B.id) as total, sum(B.price) as price FROM %%AGILE_DB_PREFIX%%account A JOIN %%AGILE_DB_PREFIX%%service as B ON(B.account_id=A.id and B.active=1 AND B.price_type=1) A.site_id = %%DEFAULT_SITE%% GROUP BY sku ORDER BY sku DESC 30 SKU sku true Total Services for SKU total true num Forcasted Revenue price true dol,2 dol,2