Add available bookings scripts and results

This commit is contained in:
2024-11-18 15:40:17 +01:00
parent 9308f5471a
commit 0d75c1c035
5 changed files with 166 additions and 0 deletions

12
sql/example_bookings.sql Normal file
View File

@@ -0,0 +1,12 @@
-- available bookings - task 1
-- changes:
-- changed BookingDate (Reserved) data type from date to datetime, because I assumed that Little Lemon
-- allows wants bookings per day and table - a table is considered blocked for 2 hours
-- changed BookingID range from 1-4 to 11-14, because there are already 10 Bookings in my test data set
-- added arbitrary EmployeeID that corresponds to the Employee that handled the booking process
-- noqa: disable=CP03
insert into Bookings (BookingID, Reserved, TableNumber, CustomerID, EmployeeID) values
(11, '2022-10-14 18:00:00', 5, 1, 1),
(12, '2022-11-12 19:30:00', 3, 3, 1),
(13, '2022-10-11 18:45:00', 2, 2, 1),
(14, '2022-10-13 19:15:00', 2, 1, 1);