#angelachen103-sigma-sql

1 messages · Page 1 of 1 (latest)

river pilot
sinful drift
#

I'm trying to get a breakdown of revenue by product and tierID-- tried joining invoices, subscriptions, prices, and products, but I get an over-inflated number. trying to see if I can use balance_transactions table instead but not sure how to join...any help would be appreciated!

river pilot
#

I can try and give some pointers/sugestions, but if you need more specific SQL help this isn't the best place

#

Are you making sure to check that the invoices you're going through have a paid status?

sinful drift
#

thanks for much karbi--yes I did, filtered by using WHERE invoice.status= 'paid'

river pilot
#

What number are you actually comparing to?

sinful drift
#

comparing to total monthly revenue for Feb from balanced_transactions table

#

it's the monthly summary and balance template in Stripe

#

also, do you know where would be the best place to get more specific SQL help? for future reference

river pilot
sinful drift
#

I see, okay