Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
173 B
5
Indexable
Never
WITH users AS
    (SELECT user_id,
           ROW_NUMBER() OVER (ORDER BY created_at) AS rang
    FROM tools_shop.users) 
SELECT user_id
FROM users
WHERE rang = 2021;