Changes between Version 41 and Version 42 of AdvancedReports


Ignore:
Timestamp:
12/24/22 17:06:38 (2 years ago)
Author:
181006
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AdvancedReports

    v41 v42  
    137137  {{{#!sql
    138138select q4."location", q4.max_broj_nastani
    139 from (
    140 
    141 (select extract (year from t.date) as godina,  count(distinct e.id_event) broj_nastani, t."location"
    142 from ticket t
    143 join events e on t.id_event=e.id_event
    144 group by godina, t."location"
     139from
     140        (
     141
     142(
     143        select extract (year from t.date) as godina, count(distinct e.id_event) broj_nastani, t."location"
     144        from ticket t
     145        join events e on t.id_event = e.id_event
     146        group by godina, t."location"
    145147) q1
    146                
    147148join
    148149
    149150(
    150 select max(q2.broj_nastani) as max_broj_nastani
    151 from (
    152 select extract (year from t.date) as godina,  count(distinct e.id_event) broj_nastani, t."location"
    153 from ticket t
    154 join events e on t.id_event=e.id_event
    155 group by godina, t."location"
     151        select max(q2.broj_nastani) as max_broj_nastani
     152        from
     153                (
     154                select extract (year from t.date) as godina, count(distinct e.id_event) broj_nastani, t."location"
     155                from ticket t
     156                join events e on t.id_event = e.id_event
     157                group by godina, t."location"
    156158) q2 ) q3
    157 on q1.broj_nastani=q3.max_broj_nastani)
     159on
     160        q1.broj_nastani = q3.max_broj_nastani)
    158161
    159162as q4