Changes between Version 5 and Version 6 of AdvancedReports


Ignore:
Timestamp:
01/01/23 21:47:11 (23 months ago)
Author:
181213
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AdvancedReports

    v5 v6  
    4444)q2)
    4545}}}
    46 - Најнарачан производ по ресторан сортиран?
     46- Најнарачан производ по ресторан сортиран
     47{{{#!sql
     48select q1.restoran_ime as restoran, MAX(q1.obrok_ime) as obrok, MAX(q1.br_obroci) as broj_naracki FROM(
     49SELECT r.restoran_ime, o.obrok_ime,  SUM(sso.kolicina) as br_obroci
     50FROM restoran as r
     51JOIN meni as m on r.restoran_id=m.restoran_id
     52JOIN obrok as o on m.meni_id=o.meni_id
     53JOIN se_sostoi_od as sso on o.obrok_id=sso.obrok_id
     54JOIN naracka as n on sso.naracka_id=n.naracka_id
     55GROUP BY r.restoran_ime, o.obrok_ime)q1
     56group by restoran
     57order by broj_naracki desc
     58}}}
    4759- Кој корисник колку има платено во секој ресторан подредено?