Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
122 B
2
Indexable
Never
SELECT user_id, 
paid_at::DATE,
MIN(paid_at::DATE) OVER (partition by user_id) as first_paid_at 
FROM tools_shop.orders