Changes between Version 9 and Version 10 of AdvancedReports


Ignore:
Timestamp:
01/19/22 16:01:10 (3 years ago)
Author:
193060
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AdvancedReports

    v9 v10  
    5656fetch first row only;
    5757}}}
     58
     59== Прикажување на најчитаната книга на еден автор за одреден временски период
     60{{{#!sql
     61select * from pozajmica;
     62select k.naslov, a.ime, count(p.id_na_pozajmica) as pozajmuvanja from
     63pozajmica as p
     64
     65join knigi as k on p.id_na_kniga=k.id_na_kniga
     66join izdava as i on k.id_na_kniga = i.id_knigi
     67join avtor as a on i.id_avtor = a.id_na_avtor
     68where a.ime like '%Goce%' and p.datum_na_zemanje between now() - interval'1 month' and now()
     69
     70group by 1,2
     71order by pozajmuvanja desc
     72fetch first row only;
     73}}}