Changes between Version 6 and Version 7 of AdvancedReports


Ignore:
Timestamp:
02/01/22 13:54:47 (3 years ago)
Author:
191215
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AdvancedReports

    v6 v7  
    55{{{#!sql
    66select
    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)
     9from transactions t
     10inner join offers o on
     11                t.offer_id = o.id
     12where
     13        extract (year from t.created_at) = extract (year from now() - interval '1 year')
     14group by o.artist_id
    1315}}}
    1416