You are on page 1of 8

Dolphin cove wants a database to store bookings for their different programs.

Bookings for each guest will take into consider

Tour Companys Guest Name Hotels Date


Gust Type

Programs package excursion excursion date


Cost type Type
Excursion_id
Package_id

Guest Table Company


id Name company_id guest_type
C1 jame 1 2
C2 son 1 2
C3 tom 1 2
C4 ann 3 2
C5 kelly 2 2

Program Table
id Name excursion_id booked date
1 family 2 6/8/2021
2 vacation 1 3/4/2021

Guest Details
id Guest_id
1 c1
2 c2
3 c3
4 w2
5 w1
Consider the fo

st will take into consideration the Hotel the guest is coming from, the Tour Company they booked through, the guest’s name, the number
the Tour Company is billed after) or it may be upfront cash for walk-in gue

You are required to design

type of Payment
type

Guest Table Walk-in


id Name
W1 Goku
W2 Goahn
W3 Chi Chi
W4 Goten
W5 Krillen

est Details
payment_id Program_id
2 1
2
2
1
1
Consider the following scenario:

ked through, the guest’s name, the number of guests for each program and the cost for the program, the date they booked and the excurs
er) or it may be upfront cash for walk-in guests. Allowance need to be made for a guest who is not coming from a hotel.

You are required to design a database for this scenario

Hotals
id
1
2
3

Guest type Table


guest_type id
1 1
1 2
1
1
1

id
1

2
e they booked and the excursion date. A guest may book multiple programs for the same date. A booking made through a Tour Company m
m a hotel.

Hotals
Hotal name
Scandals
Rio
Half Moon

st type Table Company


type id Name
Walk in 1 Company A
Booked 2 Company B
3 Non

Excursion
Type cost date
Swimming With Dolpin 500 11/20/2021

zoo 400 5/22/2021


ough a Tour Company may also be on credit (in which case

Company
No. Guest Hotal_id
1 3
2 1
2 2

Payment method
id type
1 Cash

2 credit

You might also like