Query Run
select substr(log_timestamp,1,4), count(log_action) from logging where... 11 months ago
select substr(log_timestamp,1,4), count(log_action) from logging where... 2 years ago
select substr(log_timestamp,1,6), count(log_action) from logging where... 2 years ago
select substr(log_timestamp,1,8), count(log_action) from logging where... 2 years ago