Changes between Version 8 and Version 9 of Advanced database reports (SQL and Stored procedures)
- Timestamp:
- 12/28/22 16:45:40 (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Advanced database reports (SQL and Stored procedures)
v8 v9 138 138 == Преглед на бројот на резервации по категории за секој корисник 139 139 140 select ut.full_name , 141 ( 140 {{{#!sql 141 select ut.full_name, 142 ( 142 143 select count(rfa.reservation_id) 143 144 from reservation_for_activity rfa 144 )as number_reservations_for_activity,145 )as number_reservations_for_activity, 145 146 ( 146 147 147 select count(rfe.reservation_id) 148 from reservation_for_events rfe 148 149 )as number_reservations_for_events, 149 150 ( 150 151 151 select count(rfpm.reservation_id) 152 from reservation_for_prepared_meal rfpm 152 153 )as number_reservations_for_meal, 153 154 ( 154 155 155 select count(rfs.reservation_id) 156 from reservation_for_service rfs 156 157 )as number_reservations_for_service 157 158 from user_table ut … … 163 164 on gmr.reservation_id = r.reservation_id 164 165 group by 1; 165 166 166 }}} 167 167 168 168