Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is my er diagram for a hotel management system. I need help writing three procedures/functions in PL SQL. Should I make adjustments to my

image text in transcribed

This is my er diagram for a hotel management system. I need help writing three procedures/functions in PL SQL. Should I make adjustments to my er diagram? Really confused on hw to write code for these procedures/functions. Any help would be appreciated.

Make a reservation: Input parameters: Hotel, guests name, start date, end dates, room type, date of reservation, etc. Output: reservation ID . NOTE: Only one guest per reservation. However, the same guest can make multiple reservations.

Find a reservation: Input is guests name and date, hotel ID. Output is reservation ID

Cancel a reservation: Input the reservationID and mark the reservation as cancelled (do NOT delete it)

Hotels Rooms m NumberPK> Zipcode City State Phone Number Room Type Rates Room location Number of beds Customer ID Reservation SPK2 Check in date Check out date Status Number of guests Reservation date Room Number Billing Customer Billing # Room charge Misc charges Credit card No Payment Date omer ID Last Name Phone number First Name City State Zip code Services ervice ID PK> Service_name Service cost Reservation Number Customer ID

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Repairing And Querying Databases Under Aggregate Constraints

Authors: Sergio Flesca ,Filippo Furfaro ,Francesco Parisi

2011th Edition

146141640X, 978-1461416401

More Books

Students also viewed these Databases questions

Question

Question How are VEBA assets allocated when a plan terminates?

Answered: 1 week ago

Question

Question May a taxpayer roll over money from an IRA to an HSA?

Answered: 1 week ago

Question

Question What is the doughnut hole in HSA coverage?

Answered: 1 week ago