Changes between Version 19 and Version 20 of AdvancedReports
- Timestamp:
- 03/10/22 18:54:09 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AdvancedReports
v19 v20 269 269 270 270 {{{#!sql 271 -- Status 1 - vo dogovor272 -- Status 2 - dogovoreni273 -- Status 3 - otkazano274 275 271 with tempTable as (select 276 277 272 oc.offer_id, 273 count(oc.offer_id) as num_of_comments 278 274 from offer_comments oc 279 275 join offers as o on o.id = oc.offer_id and 280 o.status = 2 276 o.status = 'COMPLETED' 281 277 group by oc.offer_id) 282 278 select 283 279 avg(t.num_of_comments) 284 280 from tempTable as t 285 281 }}}