Card Expiration Dates Summary by Month and Year SELECT count(id) as total, CONCAT( "20", card_exp_year, "-", card_exp_month) as expire from %%AGILE_DB_PREFIX%%account_billing A A.site_id = %%DEFAULT_SITE%% GROUP BY expire ORDER BY expire ASC 0 Expire Year-Month expire Total total true