Changes between Version 7 and Version 8 of AdvancedReports


Ignore:
Timestamp:
01/25/22 20:22:29 (3 years ago)
Author:
193288
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AdvancedReports

    v7 v8  
    88== Листа од прекшроци кој начесто се случуваат на ниво на сите паркинзи
    99{{{#!sql
    10     select z.Id_zona,  count(p.broj_na_pmesta) from zona as z
    11   join parking_mesto as p on z.Id_zona=p.IdZona
    12   group by z.id_zona
     10    select lokacija,coalesce(sum(krajno_vreme-pocetno_vreme),0) as vreme from ime_na_parking as inp
     11left join zona as z on ime_na_parking_id_ime =id_ime
     12left join parking_mesto as pm on id_zona= idzona
     13left join rezervacija as rez on rez.broj_na_pmesta=pm.broj_na_pmesta
     14group by inp.lokacija
     15order by vreme desc limit 1
    1316  }}}
    1417
     
    2225== Прикажување на статистика кој паркинг носи најголема заработка
    2326{{{#!sql
    24     select z.Id_zona,  count(p.broj_na_pmesta) from zona as z
    25   join parking_mesto as p on z.Id_zona=p.IdZona
    26   group by z.id_zona
     27    select  tip_plakjanje , count( tip_plakjanje) as brpt from plakjanje
     28group by tip_plakjanje
     29order by brpt desc limit 1
    2730  }}}
    2831