New Ticket Statistics By Year SELECT from_unixtime(A.date_orig,"%Y") as yearmonth, count(A.id) as total from %%AGILE_DB_PREFIX%%ticket A A.site_id = %%DEFAULT_SITE%% GROUP BY yearmonth ORDER BY yearmonth 0 Year: yearmonth true true true false false Total Tickets total true SELECT from_unixtime(A.date_orig,"%Y") as yearmonth, count(A.id) as total from %%AGILE_DB_PREFIX%%ticket A A.site_id = %%DEFAULT_SITE%% GROUP BY yearmonth ORDER BY yearmonth By Month SELECT from_unixtime(A.date_orig,"%Y-%m") as yearmonth, count(A.id) as total from %%AGILE_DB_PREFIX%%ticket A A.site_id = %%DEFAULT_SITE%% GROUP BY yearmonth ORDER BY yearmonth 0 Year and Month: yearmonth true true true false false Total Tickets total true SELECT from_unixtime(A.date_orig,"%Y-%m") as yearmonth, count(A.id) as total from %%AGILE_DB_PREFIX%%ticket A A.site_id = %%DEFAULT_SITE%% GROUP BY yearmonth ORDER BY yearmonth By Week SELECT from_unixtime(A.date_orig,"%Y-%u") as yearmonth, count(A.id) as total from %%AGILE_DB_PREFIX%%ticket A A.site_id = %%DEFAULT_SITE%% GROUP BY yearmonth ORDER BY yearmonth 0 Year and Week: yearmonth true true true false false Total Tickets total true SELECT from_unixtime(A.date_orig,"%Y-%u") as yearmonth, count(A.id) as total from %%AGILE_DB_PREFIX%%ticket A A.site_id = %%DEFAULT_SITE%% GROUP BY yearmonth ORDER BY yearmonth By Day SELECT from_unixtime(A.date_orig,"%Y-%m-%d") as yearmonth, count(A.id) as total from %%AGILE_DB_PREFIX%%ticket A A.site_id = %%DEFAULT_SITE%% GROUP BY yearmonth ORDER BY yearmonth 0 Year, Month, and Day: yearmonth true true true false false Total Tickets total true SELECT from_unixtime(A.date_orig,"%Y-%m-%d") as yearmonth, count(A.id) as total from %%AGILE_DB_PREFIX%%ticket A A.site_id = %%DEFAULT_SITE%% GROUP BY yearmonth ORDER BY yearmonth