Changes between Version 5 and Version 6 of AdvancedReports


Ignore:
Timestamp:
01/23/26 20:20:24 (7 days ago)
Author:
231136
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AdvancedReports

    v5 v6  
    195195)
    196196SELECT
    197     CONCAT(EXTRACT(YEAR FROM oy.year_start),'-',m.month_name) AS month,
     197    CONCAT(EXTRACT(YEAR FROM oy.year_start),'-', m.month_name) AS month,
    198198    COALESCE(u.full_name,'n/a') AS artist_name,
    199     COALESCE(mp.max_month_counter,0) AS monthly_listens
     199    COALESCE(mp.max_month_counter, 0) AS monthly_listens
    200200FROM months m
    201201LEFT JOIN most_popular mp ON mp.month=m.month_num
     
    242242    SELECT
    243243        u.full_name,
    244         CONCAT(om.prev_period_start::DATE, ' | ',om.prev_period_end::DATE) AS previous_period,
     244        CONCAT(om.prev_period_start::DATE, ' | ', om.prev_period_end::DATE) AS previous_period,
    245245        last_period_count,
    246         CONCAT(om.this_period_start::DATE, ' | ',om.this_period_end::DATE) AS this_period,
     246        CONCAT(om.this_period_start::DATE, ' | ', om.this_period_end::DATE) AS this_period,
    247247        this_period_count,
    248248        ROUND(((CAST(this_period_count AS DOUBLE PRECISION) - last_period_count) / NULLIF(last_period_count, 0)) * 100) AS pct_change