Changes between Version 16 and Version 17 of AdvancedReports


Ignore:
Timestamp:
01/31/22 19:59:35 (3 years ago)
Author:
193288
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AdvancedReports

    v16 v17  
    2727== Прикажување на статистика кој паркинг носи најголема заработка
    2828{{{#!sql
    29 select lokacija,coalesce(sum(krajno_vreme-pocetno_vreme),0)*75 as vreme from ime_na_parking as inp
     29select lokacija,
     30coalesce(date_part('hour',krajno_vreme-pocetno_vreme),'0')*75 as vreme
     31from ime_na_parking as inp
    3032left join zona as z on ime_na_parking_id_ime =id_ime
    3133left join parking_mesto as pm on id_zona= idzona
    3234left join rezervacija as rez on rez.broj_na_pmesta=pm.broj_na_pmesta
    33 group by inp.lokacija
     35group by inp.lokacija, rez.krajno_vreme, rez.pocetno_vreme
    3436order by vreme desc limit 1
    3537  }}}