Changes between Version 7 and Version 8 of izvestai
- Timestamp:
- 01/29/25 20:48:23 (27 hours ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
izvestai
v7 v8 10 10 au."role", 11 11 rh.restaurant_id, 12 13 12 COUNT(CASE WHEN rh.cancellation_reason = 'Canceled by user' THEN 1 END) AS canceled_by_user_per_restaurant, 14 15 13 COUNT(CASE WHEN rh.cancellation_reason = '/' THEN 1 END) AS succesfull_by_user_per_restaurant, 16 17 14 COUNT(rh.cancellation_reason) AS total_cancellations_per_restaurant 18 19 15 FROM reservation_history rh 20 16 INNER JOIN app_user au ON rh.customer_id = au.id 21 22 17 WHERE rh.cancellation_reason IS NOT NULL 23 24 18 GROUP BY au.first_name, 25 19 au.last_name, … … 41 35 FROM restaurants r 42 36 JOIN reservations res ON r.restaurantId = res.restaurantId 43 GROUP BY r.restaurantId, r."name" 37 GROUP BY r.restaurantId, 38 r."name" 44 39 ORDER BY totalReservations desc 45 40 }}}