Changes between Version 37 and Version 38 of AdvancedReports
- Timestamp:
- 12/24/22 16:21:35 (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AdvancedReports
v37 v38 70 70 {{{#!sql 71 71 select e2."name", q4.max_broj_zainteresirani 72 from 73 ( (select e.id_event, count(u.id_user) as broj_na_zainteresirani_kupuvaci72 from ( 73 (select e.id_event, count(u.id_user) as broj_na_zainteresirani_kupuvaci 74 74 from ticket t 75 75 join events e on t.id_event=e.id_event … … 77 77 join cart c on c.id_user_customer=t.id_user_customer 78 78 where e."date" between current_date - interval '100 days' and current_date 79 group by e.id_event ) q1 79 group by e.id_event 80 ) q1 80 81 81 82 join 82 83 83 ( 84 select max(q2.broj_na_zainteresirani_kupuvaci) as max_broj_zainteresirani 84 (select max(q2.broj_na_zainteresirani_kupuvaci) as max_broj_zainteresirani 85 85 from ( 86 86 select e.id_event, count(u.id_user) as broj_na_zainteresirani_kupuvaci … … 91 91 where e."date" between current_date - interval '100 days' and current_date 92 92 group by e.id_event 93 ) q2 94 ) q3 on q1.broj_na_zainteresirani_kupuvaci=q3.max_broj_zainteresirani) 93 ) q2 ) q3 94 on q1.broj_na_zainteresirani_kupuvaci=q3.max_broj_zainteresirani) 95 95 96 as q4 96 join 97 events e2 98 on q4.id_event=e2.id_event 97 join events e2 on q4.id_event=e2.id_event 99 98 100 99 }}}