Changes between Version 16 and Version 17 of AdvancedReports
- Timestamp:
- 01/31/22 19:59:35 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AdvancedReports
v16 v17 27 27 == Прикажување на статистика кој паркинг носи најголема заработка 28 28 {{{#!sql 29 select lokacija,coalesce(sum(krajno_vreme-pocetno_vreme),0)*75 as vreme from ime_na_parking as inp 29 select lokacija, 30 coalesce(date_part('hour',krajno_vreme-pocetno_vreme),'0')*75 as vreme 31 from ime_na_parking as inp 30 32 left join zona as z on ime_na_parking_id_ime =id_ime 31 33 left join parking_mesto as pm on id_zona= idzona 32 34 left join rezervacija as rez on rez.broj_na_pmesta=pm.broj_na_pmesta 33 group by inp.lokacija 35 group by inp.lokacija, rez.krajno_vreme, rez.pocetno_vreme 34 36 order by vreme desc limit 1 35 37 }}}