Changes between Version 5 and Version 6 of AdvancedReports


Ignore:
Timestamp:
01/12/22 16:40:49 (3 years ago)
Author:
195115
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AdvancedReports

    v5 v6  
    2929
    3030{{{#!sql
    31  select sum(mp.projection_price) as vkupna_potroshuvacka,u.user_name from users as u
     31  select c.user_id,sum(mp.projection_price) as vkupna_potroshuvacka,u.user_name,u.user_surname from users as u
    3232     join client as c on c.user_id = u.user_id
    3333     join reservation as r on r.user_id = c.user_id
     
    3535     join movieprojection as mp on mp.projection_id = r.projection_id
    3636     where mp.projection_id = 12732  --?--
    37      group by u.user_name
     37     group by c.user_id,u.user_name,u.user_surname
    3838     order by vkupna_potroshuvacka desc
    3939     limit 1;