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

SQL

x
 
        SELECT *
          IF(rev_timestamp < DATE_FORMAT(DATE_SUB(NOW(),INTERVAL 1 YEAR),'%Y%m%d%H%i%s'), rev_timestamp, NULL)
        FROM revision_userindex
        WHERE rev_user = ?
        ORDER BY rev_timestamp DESC
        LIMIT 1;
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...