Changes between Version 11 and Version 12 of AdvancedReports


Ignore:
Timestamp:
03/07/23 19:51:19 (22 months ago)
Author:
201045
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AdvancedReports

    v11 v12  
    6363{{{#!sql
    6464create view dostavuvac_dostavi_za_sekoe_prod_mesto as
    65         select k.ime,p.ime as ime_mesto,count(distinct n2.naracka_id) as broj_naracki,sum(n.iznos) as vkupna_suma
     65        select distinct k.ime,p.ime as ime_mesto,count(distinct n2.naracka_id) as broj_naracki,sum(n.iznos) as vkupna_suma
    6666        from korisnik k  join dostavuvac  d
    6767        on k.korisnik_id = d.korisnik_id
     
    8888{{{#!sql
    8989
    90 create view franshiza_promet_mesta_tri_meseci as select f.ime as ime_franshiza, p.ime as ime_prodaznomesto, sum(n2.iznos) as vkupen_promet
     90create view franshiza_promet_mesta_tri_meseci as select distinct f.ime as ime_franshiza, p.ime as ime_prodaznomesto, sum(n2.iznos) as vkupen_promet
    9191from franshiza f join prodazhnomesto p on f.franshiza_id = p.franshiza_id
    9292join naracka n on n.id_mesto  = p.id_mesto