Changes between Version 4 and Version 5 of AdvancedReports


Ignore:
Timestamp:
02/13/24 22:25:13 (9 months ago)
Author:
201136
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AdvancedReports

    v4 v5  
    7171
    7272}}}
     73
     74=== **Извештај за број на денови вои кои корисниците биле активни според тромесечије**
     75{{{#!sql
     76
     77SELECT uhd.uID,
     78       DATE_TRUNC('quarter', d.date) AS QuarterStart,
     79       COUNT(DISTINCT DATE_TRUNC('day', d.date)) AS active_days
     80FROM _Day d
     81JOIN UserHasDays uhd ON d.dID = uhd.dID
     82WHERE d.date >= CURRENT_DATE - INTERVAL '3 months'
     83GROUP BY uhd.uID, QuarterStart
     84ORDER BY uhd.uID, QuarterStart;
     85
     86
     87
     88}}}