Add modify bookings scripts and results
This commit is contained in:
15
sql/add_booking.sql
Normal file
15
sql/add_booking.sql
Normal file
@@ -0,0 +1,15 @@
|
||||
-- modify 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
|
||||
-- added EmployeeID input parameter
|
||||
-- noqa: disable=CP03,LT02,RF03
|
||||
create procedure AddBooking (
|
||||
in BookingID int, in Reserved datetime, in TableNumber int, in CustomerID int, in EmployeeID int
|
||||
)
|
||||
begin
|
||||
insert into Bookings (BookingID, Reserved, TableNumber, CustomerID, EmployeeID) values (
|
||||
BookingID, Reserved, TableNumber, CustomerID, EmployeeID
|
||||
);
|
||||
select concat("New booking added") as Confirmation;
|
||||
end
|
||||
Reference in New Issue
Block a user