Question: 2. (20 points) Please write a stored procedure named pHW2 2 xxxx based on the Hotel, Room and Booking tables. Your program should take one

 2. (20 points) Please write a stored procedure named pHW2 2
xxxx based on the Hotel, Room and Booking tables. Your program should

2. (20 points) Please write a stored procedure named pHW2 2 xxxx based on the Hotel, Room and Booking tables. Your program should take one argument hotelname and it should meet the following 2 test cases (10 points) If the given hotel name 2B 10 points) If the given hotel name is 2A. is in the Hotel table, please display the room type empty or null, please display an error message and the number of room booked for each room "invalid hotel name" type for the given hotel name. mysql call pHW2 2 XXXX(NULL); mysql call pHW2 2 xxxx ('Grosvenor'); mysql call pHW2 2 xxxx(); I type I count l message I double l 2 l l Please input a valid hotel name. I family I 1 l single l 2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!