Changes between Version 6 and Version 7 of AdvancedReports


Ignore:
Timestamp:
01/19/22 01:45:13 (3 years ago)
Author:
193060
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AdvancedReports

    v6 v7  
    4545}}}
    4646
    47 == Прикажување на најдобро оценетата книга во даден временски интервал
    48 {{{
    49 select k.naslov, avg(ocena) as prosecna_ocena from ocena as o
    50 
    51 join knigi as k on o.ocena_id_kniga = k.id_na_kniga
    52 join pozajmica as p on k.id_na_kniga = p.id_na_kniga
    53 
    54 where p.datum_na_vrakjanje between now() - interval '2 weeks' and now()
    55 group by 1
    56 order by prosecna_ocena desc
    57 fetch first row only;
    58 }}}