Changes between Version 37 and Version 38 of AdvancedReports


Ignore:
Timestamp:
12/24/22 16:21:35 (2 years ago)
Author:
181006
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AdvancedReports

    v37 v38  
    7070  {{{#!sql
    7171select e2."name", q4.max_broj_zainteresirani
    72 from
    73 ((select e.id_event, count(u.id_user) as broj_na_zainteresirani_kupuvaci
     72from (
     73(select e.id_event, count(u.id_user) as broj_na_zainteresirani_kupuvaci
    7474from ticket t 
    7575join events e on t.id_event=e.id_event
     
    7777join cart c on c.id_user_customer=t.id_user_customer
    7878where e."date" between current_date - interval '100 days' and current_date
    79 group by e.id_event ) q1
     79group by e.id_event
     80) q1
    8081
    8182join
    8283
    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
    8585from (
    8686select e.id_event, count(u.id_user) as broj_na_zainteresirani_kupuvaci
     
    9191where e."date" between current_date - interval '100 days' and current_date
    9292group by e.id_event
    93 ) q2
    94 ) q3 on q1.broj_na_zainteresirani_kupuvaci=q3.max_broj_zainteresirani)
     93) q2 ) q3
     94on q1.broj_na_zainteresirani_kupuvaci=q3.max_broj_zainteresirani)
     95
    9596as q4
    96 join
    97 events e2
    98 on q4.id_event=e2.id_event
     97join events e2 on q4.id_event=e2.id_event
    9998
    10099  }}}