Fork of Untitled query #41110 by Zhuyifei1999
This query is marked as a draft This query has been published by Zhuyifei1999.

SQL

AخA
 
select *
from logging_userindex lu
join actor_logging on lu.log_actor = actor_id
where actor_name = 'RoySmith'
and lu.log_type = 'delete'
and lu.log_action = 'delete'
and exists (
    select *
    from logging_logindex ll 
    where lu.log_namespace = ll.log_namespace
    and lu.log_title = ll.log_title
    and ll.log_type = 'delete'
    and ll.log_action = 'restore'
)
;
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.

Query status: complete

Executed in 3.33 seconds as of Sat, 04 Jan 2020 09:26:22 UTC.