Changes between Version 6 and Version 7 of AdvancedReports
- Timestamp:
- 01/19/22 01:45:13 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AdvancedReports
v6 v7 45 45 }}} 46 46 47 == Прикажување на најдобро оценетата книга во даден временски интервал48 {{{49 select k.naslov, avg(ocena) as prosecna_ocena from ocena as o50 51 join knigi as k on o.ocena_id_kniga = k.id_na_kniga52 join pozajmica as p on k.id_na_kniga = p.id_na_kniga53 54 where p.datum_na_vrakjanje between now() - interval '2 weeks' and now()55 group by 156 order by prosecna_ocena desc57 fetch first row only;58 }}}