Companies Listed Alphabetically heading SELECT UCASE(LEFT(A.company, 1)) as fnum, count(A.id) as total from %%AGILE_DB_PREFIX%%account A A.site_id = %%DEFAULT_SITE%% AND A.company IS NOT NULL and A.company!='' AND A.id in (select distinct account_id from %%AGILE_DB_PREFIX%%account_group where group_id!=4 and group_id!=1001) GROUP BY fnum ORDER BY fnum ASC 0 fnum true true true false false Total Customers: total SELECT UCASE(LEFT(A.company, 1)) as fnum, A.email, A.company, CONCAT(A.first_name,' ', A.last_name) as name, CONCAT(address1,' ', address1,', ', city, ' ', state, ', ', zip ) as address from %%AGILE_DB_PREFIX%%account A A.site_id = %%DEFAULT_SITE%% AND A.company IS NOT NULL AND A.company!='' AND A.id in (select distinct account_id from %%AGILE_DB_PREFIX%%account_group where group_id!=4 and group_id!=1001) ORDER BY company ASC 30 Company company Contact name Address address E-mail email