Query Run
select substr(log_timestamp,1,4), count(log_action) from logging where... 10 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