Changes between Version 7 and Version 8 of izvestai


Ignore:
Timestamp:
01/29/25 20:48:23 (27 hours ago)
Author:
213209
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • izvestai

    v7 v8  
    1010    au."role",
    1111    rh.restaurant_id,
    12    
    1312    COUNT(CASE WHEN rh.cancellation_reason = 'Canceled by user' THEN 1 END) AS canceled_by_user_per_restaurant,
    14 
    1513    COUNT(CASE WHEN rh.cancellation_reason = '/' THEN 1 END) AS succesfull_by_user_per_restaurant,
    16 
    1714    COUNT(rh.cancellation_reason) AS total_cancellations_per_restaurant
    18 
    1915FROM reservation_history rh 
    2016INNER JOIN app_user au ON rh.customer_id = au.id
    21 
    2217WHERE rh.cancellation_reason IS NOT NULL 
    23 
    2418GROUP BY au.first_name,
    2519         au.last_name,
     
    4135FROM restaurants r
    4236JOIN reservations res ON r.restaurantId = res.restaurantId
    43 GROUP BY r.restaurantId, r."name"
     37GROUP BY r.restaurantId,
     38         r."name"
    4439ORDER BY totalReservations desc
    4540}}}