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

SQL

x
 
SELECT
    CASE WHEN ir_type = 1 THEN (
        SELECT page_title FROM page WHERE page_id = ir_value
    )
    WHEN ir_type = 2 THEN 'ns'
    ELSE 'Something went wrong'
    END AS 'type',
    ir_value
FROM ipblocks_restrictions
WHERE ir_ipb_id = 9772549
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...