Untitled

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