Changes between Version 2 and Version 3 of AdvancedReports
- Timestamp:
- 01/18/22 22:10:41 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AdvancedReports
v2 v3 13 13 fetch first row only; 14 14 }}} 15 16 == Прикажување на членот што има прочитано највеќе книги во последниот месец 17 {{{ 18 select ch.ime,ch.prezime,(count(ch.id_chovek)) as pozajmuvanja 19 from pozajmica as p 20 join chlen as chl on p.id_chovek_prave = chl.id_chovek 21 join chovek as ch on chl.id_chovek = ch.id_chovek 22 join knigi as k on p.id_na_kniga = k.id_na_kniga 23 where p.datum_na_zemanje between now() - interval'1 month' and now() 24 group by 1,2 25 order by pozajmuvanja desc 26 fetch first row only; 27 }}}