Using the Tables provided create two store procedures and define the business reasons for them.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Using the Tables provided create two store procedures and define the business reasons for them.
PROPERTY_STATUS
PF' PROPERTY_ID
PF PROPERTY_UNIT_NUMBER
P' STATUS_DATE
BOOKING_ID
* AVAILABLE
> PROPERTY_STATUS_PK (PROPERTY_ID, PROPERTY_UNIT_NUMBER, STATUS_DATE)
S FK_PROPERTY_STATUS_TO_BOOKING (BOOKING_ID)
S FK_PROPERTY_STATUS_TO_PROPERTY (PROPERTY_ID, PROPERTY_UNIT_NUMBER)
NUMBER (10)
CHAR (B BYΤΕ)
DATE
NUMBER (10)
CHAR (1 BYTE)
PROPERTY_STATUS_PK (PROPERTY_ID. PROPERTY_UNIT_NUMBER, STATUS_DATE)
BOOKING
P* BOOKING_ID
F' PROPERTY_ID
* PROPERTY_UNIT_NUMBER
* GUEST_ID
BOOKING_STATUS
* BOOKING_STATUS_CHANGE_DATE
* BOOKING_START
* BOOKING_END
OTHER_DETAILS
NUMBER (10)
NUMBER (10)
CHAR (B ΒYTE)
NUMBER (10)
VARCHAR2 (25 BYTE)
PROPERTY
PF PROPERTY_ID
P PROPERTY_UNIT_NUMBER
* PROPERTY_TYPE
* BATHROOM_COUNT
* BEDROOM_COUNT
* ROOM_COUNT
* SLEEPS_HOw_MANY
OTHER DETAILS
> PROPERTY_PK (PROPERTY_ID. PROPERTY_UNIT_NUMBER)
VACATION_RENTAL
NUMBER (10)
CHAR (8 BYTE)
VARCHAR2 (50 BYTE)
P VRENTAL_ID
NUMBER (10)
VARCHAR2 (50 BYTE)
VARCHAR2 (100 BYTE)
DESCRIPTION
COMPLETE ADDRESS
* OWNER_NAME
* OWNER_EMAIL
OWNER_PHONE
OTHER DETAILS
NUMBER (2,1)
NUMBER (2)
DATE
VARCHAR2 (50 BYTE)
VARCHAR2 (100 BYTE)
CHAR (10 BYTE)
VARCHAR2 (100 BYTE)
DATE
K-
NUMBER (3.1)
NUMBER (3)
VARCHAR2 (100 BYTE)
DATE
VARCHAR2 (100 BYTE)
> ВОOKING_PК (ВОOKING_ID)
>
HOLIDAY_HOME_PK (VRENTAL_ID)
S FK_BOOKING_TO_GUEST (GUEST_ID)
FK BOOKING TO_PROPERTY (PROPERTY_ID, PROPERTY_UNIT_NUMBER)
O BOOKING_PK (BOOKING_ID)
O HOLIDAY_HOME_PK (VRENTAL_ID)
FK_PROPERTY_TO_VRENTAL (PROPERTY_ID)
O PROPERTY_PK (PROPERTY_ID, PROPERTY_UNIT_NUMBER)
VRENTAL_AMENITY
AMENITY
GUEST
PF VRENTAL_ID
PF' AMENITY_CODE
OTHER DETAILS
> PROPERTY_AMENITY_PK (VRENTAL_ID. AMENITY_CODE)
P. GUEST ID
GUEST_FIRST_NAME
GUEST LAST_NAME
* DOB
* DRIVERS_LICENSE_STATE
* DRIVERS LICENSE_NO
OTHER DETAILS
NUMBER (10)
CHAR (5 BYTE)
VARCHAR2 (100 BYTE)
* AMENITY_CODE
* AMENITY_DESCRIPTION
> AMENITY_PK (AMENITY_CODE)
O AMENITY_PK (AMENITY_CODE)
NUMBER (10)
VARCHAR2 (50 BYTE)
VARCHAR2 (50 BYTE)
CHAR (5 BYTE)
VARCHAR2 (100 BYTE)
DATE
FK_PROPERTY_AMENITY_TO_AMENITY (AMENITY_CODE)
S FK_PROPERTY_AMENITY_TO_VRENTAL (VRENTAL_ID)
O PROPERTY_AMENITY_PK (VRENTAL_ID, AMENITY_CODE)
CHAR (2 BYTE)
VARCHAR2 (15 BYTE)
VARCHAR2 (100 BYTE)
- GUEST_PK (GUEST_ID)
O GUEST_PK (GUEST_ID)
Transcribed Image Text:PROPERTY_STATUS PF' PROPERTY_ID PF PROPERTY_UNIT_NUMBER P' STATUS_DATE BOOKING_ID * AVAILABLE > PROPERTY_STATUS_PK (PROPERTY_ID, PROPERTY_UNIT_NUMBER, STATUS_DATE) S FK_PROPERTY_STATUS_TO_BOOKING (BOOKING_ID) S FK_PROPERTY_STATUS_TO_PROPERTY (PROPERTY_ID, PROPERTY_UNIT_NUMBER) NUMBER (10) CHAR (B BYΤΕ) DATE NUMBER (10) CHAR (1 BYTE) PROPERTY_STATUS_PK (PROPERTY_ID. PROPERTY_UNIT_NUMBER, STATUS_DATE) BOOKING P* BOOKING_ID F' PROPERTY_ID * PROPERTY_UNIT_NUMBER * GUEST_ID BOOKING_STATUS * BOOKING_STATUS_CHANGE_DATE * BOOKING_START * BOOKING_END OTHER_DETAILS NUMBER (10) NUMBER (10) CHAR (B ΒYTE) NUMBER (10) VARCHAR2 (25 BYTE) PROPERTY PF PROPERTY_ID P PROPERTY_UNIT_NUMBER * PROPERTY_TYPE * BATHROOM_COUNT * BEDROOM_COUNT * ROOM_COUNT * SLEEPS_HOw_MANY OTHER DETAILS > PROPERTY_PK (PROPERTY_ID. PROPERTY_UNIT_NUMBER) VACATION_RENTAL NUMBER (10) CHAR (8 BYTE) VARCHAR2 (50 BYTE) P VRENTAL_ID NUMBER (10) VARCHAR2 (50 BYTE) VARCHAR2 (100 BYTE) DESCRIPTION COMPLETE ADDRESS * OWNER_NAME * OWNER_EMAIL OWNER_PHONE OTHER DETAILS NUMBER (2,1) NUMBER (2) DATE VARCHAR2 (50 BYTE) VARCHAR2 (100 BYTE) CHAR (10 BYTE) VARCHAR2 (100 BYTE) DATE K- NUMBER (3.1) NUMBER (3) VARCHAR2 (100 BYTE) DATE VARCHAR2 (100 BYTE) > ВОOKING_PК (ВОOKING_ID) > HOLIDAY_HOME_PK (VRENTAL_ID) S FK_BOOKING_TO_GUEST (GUEST_ID) FK BOOKING TO_PROPERTY (PROPERTY_ID, PROPERTY_UNIT_NUMBER) O BOOKING_PK (BOOKING_ID) O HOLIDAY_HOME_PK (VRENTAL_ID) FK_PROPERTY_TO_VRENTAL (PROPERTY_ID) O PROPERTY_PK (PROPERTY_ID, PROPERTY_UNIT_NUMBER) VRENTAL_AMENITY AMENITY GUEST PF VRENTAL_ID PF' AMENITY_CODE OTHER DETAILS > PROPERTY_AMENITY_PK (VRENTAL_ID. AMENITY_CODE) P. GUEST ID GUEST_FIRST_NAME GUEST LAST_NAME * DOB * DRIVERS_LICENSE_STATE * DRIVERS LICENSE_NO OTHER DETAILS NUMBER (10) CHAR (5 BYTE) VARCHAR2 (100 BYTE) * AMENITY_CODE * AMENITY_DESCRIPTION > AMENITY_PK (AMENITY_CODE) O AMENITY_PK (AMENITY_CODE) NUMBER (10) VARCHAR2 (50 BYTE) VARCHAR2 (50 BYTE) CHAR (5 BYTE) VARCHAR2 (100 BYTE) DATE FK_PROPERTY_AMENITY_TO_AMENITY (AMENITY_CODE) S FK_PROPERTY_AMENITY_TO_VRENTAL (VRENTAL_ID) O PROPERTY_AMENITY_PK (VRENTAL_ID, AMENITY_CODE) CHAR (2 BYTE) VARCHAR2 (15 BYTE) VARCHAR2 (100 BYTE) - GUEST_PK (GUEST_ID) O GUEST_PK (GUEST_ID)
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY