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

SQL

x
 
SELECT
    u.user_id,
    ug.ug_group,
    COALESCE(ug.ug_expiry, 'infinity') AS ug_expiry
FROM
    user u
LEFT JOIN
    user_groups ug ON u.user_id = ug.ug_user
WHERE
    u.user_name = 'Pastelfa';
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...