Changes between Version 18 and Version 19 of AdvancedReports
- Timestamp:
- 12/20/22 15:02:30 (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AdvancedReports
v18 v19 96 96 }}} 97 97 }}} 98 == Број на трансакции реализирани од страна на купувачи кои оставиле позитивни рецензии (оценка над 3) кон артисти 99 100 {{{#!div style="font-size: 90%" 101 {{{#!sql 102 select count (*) from ( 103 with tempTable as (select 104 o.* 105 from organizers o 106 join reviews as r on 107 r.organizer_id = o.user_id and 108 r.rating > 3 109 group by o.user_id) 110 select 111 t.* 112 from events as e 113 join tempTable as tt on 114 tt.user_id = e.organizer_id 115 join offers as o2 on 116 o2.event_id = e.id 117 join transactions as t on 118 t.offer_id = o2.id 119 ) as temp 120 }}} 121 }}} 98 122 == Настан со најмногу заинтересирани купувачи во последните 100 дена 99 123 … … 140 164 141 165 142 == Број на трансакции реализирани од страна на купувачи кои оставиле позитивни рецензии (оценка над 3) кон артисти143 144 {{{#!div style="font-size: 90%"145 {{{#!sql146 select count (*) from (147 with tempTable as (select148 o.*149 from organizers o150 join reviews as r on151 r.organizer_id = o.user_id and152 r.rating > 3153 group by o.user_id)154 select155 t.*156 from events as e157 join tempTable as tt on158 tt.user_id = e.organizer_id159 join offers as o2 on160 o2.event_id = e.id161 join transactions as t on162 t.offer_id = o2.id163 ) as temp164 }}}165 }}}