Changes between Version 5 and Version 6 of AdvancedReports
- Timestamp:
- 01/18/22 23:15:18 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AdvancedReports
v5 v6 44 44 and p.datum_na_zemanje between now() - interval'3 weeks' and now() 45 45 }}} 46 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 }}}