Changes between Version 3 and Version 4 of AdvancedReports


Ignore:
Timestamp:
01/05/23 05:22:05 (23 months ago)
Author:
201094
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AdvancedReports

    v3 v4  
    151151=== Извештај за секое кино, кој филм има направено најмногу профит во последните 3 месеци ===
    152152{{{#!sql
    153 select c.id_cinema,c.name,max(sum_cena.sum1) as m
     153select c.id_cinema,c.name,
     154max(sum_cena.sum1) as m
    154155from cinemas c
    155156join cinema_plays_film cpf on cpf.id_cinema=c.id_cinema
     
    165166where t1.date_reserved between now()-interval'3 months' and now()
    166167group by c2.id_cinema,f2.id_film
    167 ) as sum_cena on sum_cena.id=c.id_cinema
     168)
     169as sum_cena on sum_cena.id=c.id_cinema
    168170group by c.id_cinema
    169171order by c.id_cinema