Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
154 B
0
Indexable
Never
WITH p AS
    (SELECT *,
       ROW_NUMBER() OVER (ORDER BY paid_at) AS rang 
    FROM tools_shop.orders)
SELECT total_amt
FROM p
WHERE rang = 50;