Changes between Version 9 and Version 10 of izvestai
- Timestamp:
- 01/29/25 21:00:19 (27 hours ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
izvestai
v9 v10 46 46 ROUND(AVG(rh.party_size), 1) AS average_party_size, 47 47 MAX(rh.party_size) AS max_party_size, 48 COUNT( *) AS number_of_reservations48 COUNT(rh.id) AS number_of_reservations 49 49 FROM reservation_history rh 50 50 JOIN "tables" t ON t.tableid = rh.table_id … … 55 55 }}} 56 56 57 == Извештај за најрезервиран временски период во ресторан 58 {{{ 59 SELECT 60 r."name", 61 CONCAT( 62 LPAD(DATE_PART('hour', rh.check_in_date)::TEXT, 2, '0'), 63 ':00 - ', 64 LPAD((DATE_PART('hour', rh.check_in_date) + 2)::TEXT, 2, '0'), 65 ':00' 66 ) AS hour_slot, 67 COUNT(rh.id) AS totalReservations 68 FROM reservation_history rh 69 JOIN restaurants r ON rh.restaurant_id = r.restaurantid 70 GROUP BY hour_slot, r."name" 71 ORDER BY totalReservations DESC, r."name" 72 LIMIT 5; 73 }}}