Changes between Version 8 and Version 9 of Advanced database reports (SQL and Stored procedures)


Ignore:
Timestamp:
12/28/22 16:45:40 (2 years ago)
Author:
201101
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Advanced database reports (SQL and Stored procedures)

    v8 v9  
    138138== Преглед на бројот на резервации по категории за секој корисник
    139139
    140 select ut.full_name ,
    141        (
     140{{{#!sql
     141   select  ut.full_name,
     142           (
    142143                select  count(rfa.reservation_id)
    143144                from reservation_for_activity rfa
    144        )as number_reservations_for_activity,
     145           )as number_reservations_for_activity,
    145146           (
    146                         select count(rfe.reservation_id)
    147                         from reservation_for_events rfe
     147                select count(rfe.reservation_id)
     148                from reservation_for_events rfe
    148149           )as number_reservations_for_events,
    149150           (
    150                         select count(rfpm.reservation_id)
    151                         from reservation_for_prepared_meal rfpm
     151                select count(rfpm.reservation_id)
     152                from reservation_for_prepared_meal rfpm
    152153           )as number_reservations_for_meal,
    153154           (
    154                         select count(rfs.reservation_id)
    155                         from reservation_for_service rfs
     155                select count(rfs.reservation_id)
     156                from reservation_for_service rfs
    156157           )as number_reservations_for_service
    157158from user_table ut
     
    163164on gmr.reservation_id = r.reservation_id
    164165group by 1;
    165 
    166 
     166}}}
    167167
    168168