Add available bookings scripts and results
This commit is contained in:
12
sql/example_bookings.sql
Normal file
12
sql/example_bookings.sql
Normal 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);
|
||||
Reference in New Issue
Block a user