Changes between Version 6 and Version 7 of AdvancedReports
- Timestamp:
- 02/01/22 13:54:47 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AdvancedReports
v6 v7 5 5 {{{#!sql 6 6 select 7 SUM(t.stripe_price) from transactions t 8 inner join offers o on 9 o.artist_id = 6 10 and 11 t.offer_id = o.id 12 where extract (year from t.created_at) = extract (year from now() - interval '1 year'); 7 o.artist_id, 8 SUM(t.stripe_price) 9 from transactions t 10 inner join offers o on 11 t.offer_id = o.id 12 where 13 extract (year from t.created_at) = extract (year from now() - interval '1 year') 14 group by o.artist_id 13 15 }}} 14 16