Changes between Version 3 and Version 4 of AdvancedReports
- Timestamp:
- 02/13/24 22:16:37 (9 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AdvancedReports
v3 v4 55 55 56 56 }}} 57 58 === **Извештај за активни корисници според тромесечије** 59 {{{#!sql 60 61 SELECT DATE_TRUNC('quarter', d.date) AS QuarterStart, 62 COUNT(DISTINCT uhd.uID) AS num_users_with_activity 63 FROM _Day d 64 LEFT JOIN UserHasDays uhd ON d.dID = uhd.dID 65 LEFT JOIN DayHasWorkout dw ON d.dID = dw.dID 66 LEFT JOIN DayHasMeal dm ON d.dID = dm.dID 67 WHERE d.date >= CURRENT_DATE - INTERVAL '1 year' 68 GROUP BY QuarterStart 69 ORDER BY QuarterStart; 70 71 72 }}}