Changes between Version 4 and Version 5 of AdvancedReports
- Timestamp:
- 02/13/24 22:25:13 (9 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AdvancedReports
v4 v5 71 71 72 72 }}} 73 74 === **Извештај за број на денови вои кои корисниците биле активни според тромесечије** 75 {{{#!sql 76 77 SELECT uhd.uID, 78 DATE_TRUNC('quarter', d.date) AS QuarterStart, 79 COUNT(DISTINCT DATE_TRUNC('day', d.date)) AS active_days 80 FROM _Day d 81 JOIN UserHasDays uhd ON d.dID = uhd.dID 82 WHERE d.date >= CURRENT_DATE - INTERVAL '3 months' 83 GROUP BY uhd.uID, QuarterStart 84 ORDER BY uhd.uID, QuarterStart; 85 86 87 88 }}}