Changes between Version 5 and Version 6 of AdvancedReports


Ignore:
Timestamp:
01/10/22 22:51:52 (3 years ago)
Author:
193140
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AdvancedReports

    v5 v6  
    2424
    2525== Најпопуларен наставник за секој предмет ==
     26{{{#!sql
     27select p.ime as predmet, n.ime as nastavnik, count(u.id_ucenik) as max_br
     28from predmeti p
     29join predava_predmet pp on p.id_predmet = pp.id_predmet
     30join nastavnici n on pp.id_nastavnik = n.id_nastavnik
     31join predava_na pn on n.id_nastavnik = pn.id_nastavnik
     32join ucenici u on u.id_ucenik =pn.id_ucenik
     33where p.id_predmet = 1
     34group by p.ime, n.ime
     35limit 1
     36}}}
     37
     38
     39