We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f24738e + 803ede8 commit e0790ebCopy full SHA for e0790eb
1 file changed
sql/reports/topgear/payments.sql
@@ -6,9 +6,11 @@ SELECT
6
p.total_amount,
7
p.payment_status,
8
p.billing_account,
9
- p.created_at
+ p.created_at,
10
+ w.winner_id as user_id
11
FROM finance.payment p
12
INNER JOIN finance.winnings w on p.winnings_id = w.winning_id
13
WHERE p.created_at >= $1::timestamptz
14
AND p.created_at <= $2::timestamptz
-ORDER BY p.created_at DESC;
15
+ AND p.billing_account = '80000062'
16
+ORDER BY p.created_at DESC;
0 commit comments