This query is marked as a draft This query has been published by Stang.

SQL

AخA
 
select * from logging as lg join user as u on u.user_name = replace(log_title, '_', ' ') 
    where lg.log_type = 'block' and exists 
        (select 1 from user_groups as ug
            where ug.ug_user = u.user_id and ug.ug_group = 'sysop'
        )
        and lg.log_timestamp >= '2016-01-01' 
        order by lg.log_timestamp desc;
By running queries you agree to the Cloud Services Terms of Use and you irrevocably agree to release your SQL under CC0 License.
All SQL code is licensed under CC0 License.

Checking query status...