Changes between Version 7 and Version 8 of AdvancedReports


Ignore:
Timestamp:
12/20/22 14:07:14 (2 years ago)
Author:
191285
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AdvancedReports

    v7 v8  
    4040{{{#!div style="font-size: 90%"
    4141  {{{#!sql
    42 
     42select count (*) from (
     43with tempTable as (select
     44        o.*
     45from organizers o
     46join reviews as r on
     47                                        r.organizer_id = o.user_id and
     48                                        r.rating > 3
     49group by o.user_id)
     50select
     51        t.*
     52from events as e
     53join tempTable as tt on
     54                                                tt.user_id = e.organizer_id
     55join offers as o2 on
     56                                        o2.event_id = e.id
     57join transactions as t on
     58                                        t.offer_id = o2.id
     59) as temp
    4360  }}}
    4461}}}