The following three tables make up a simple reservation system for a small campground. The database should allow for a camper to make multiple reservations for future dates and for a camping spot to have several reservations for upcoming visits. Table: Camper CAMPER_NUMBER 1000 1001 1002 1003 CAMPER_LAST_NAME Jones Schmidt Williams Cooper CAMPER_FIRST_NAME Jamie Pat Clifford Amanda CAMPER_ADDRESS 1278 Essex Pl 4954 Spangled Way 956 Segull Lane P. O. Box 998877 CAMPER_CITY Birmingham El Paso Portland Portsmouth CAMPER_STATE AL TX ME OH CAMPER_ZIP_CODE 45251 79919 4108 45662 CAMPER_DRIVERS_LICENSE JJ998743-98 87632434 WIL885123 765A876B897 CAMPER_EMAIL jjones@somewhere.com patwonderfu34l@nowhere.net williams98342@foomail.com coopera@nowhere.net Table: Spot SPOT_NUMBER 101 102 103 104 SPOT_NAME The Pines The Glade Teardrop Spot Tent In Trees SPOT_LENGTH 55 50 20 0 SPOT_PULLTHRU 1 0 0 0 SPOT_ELECTRIC_AMPS 50 50 20 0 SPOT_WATER 1 1 1 1 SPOT_SEWER 1 1 0 0 SPOT_RATE_WEEKDAY 35 33 15 12 SPOT_RATE_WEEKEND 42 42 22 15 Table: Reservation RESV_NUMBER 1 2 3 4 5 RESV_DATE 2015-05-15 2015-05-14 2015-05-14 2015-05-20 2016-06-01 RESV_NIGHTS 2 4 4 1 2 SPOT_NUMBER 101 103 104 101 101 CAMPER_NUMBER 1002 1000 1001 1002 1002 RESV_RATE 84 150 24 35 85 RESV_DEPOSIT 20 25 24 10 0 Identify the primary keys and foreign keys in the three tables by dropping the correct column name or names into the table. If there is no primary or foreign key then drop none as your answer. Table Primary Key Foreign Key(s) Camper SelectCAMPER_NUMBERCAMPER_LAST_NAMECAMPER_FIRST_NAMECAMPER_ADDRESSCAMPER_CITYCAMPER_STATECAMPER_ZIP_CODECAMPER_DRIVERS_LICENSECAMPER_EMAILNoneItem 1 SelectCAMPER_NUMBERCAMPER_LAST_NAMECAMPER_FIRST_NAMECAMPER_ADDRESSCAMPER_CITYCAMPER_STATECAMPER_ZIP_CODECAMPER_DRIVERS_LICENSECAMPER_EMAILNoneItem 2 Spot SelectSPOT_NUMBERSPOT_NAMESPOT_LENGTHSPOT_PULLTHRUSPOT_ELECTRIC_AMPSSPOT_WATERSPOT_SEWERSPOT_RATE_WEEKDAYSPOT_RATE_WEEKENDNoneItem 3 SelectSPOT_NUMBERSPOT_NAMESPOT_LENGTHSPOT_PULLTHRUSPOT_ELECTRIC_AMPSSPOT_WATERSPOT_SEWERSPOT_RATE_WEEKDAYSPOT_RATE_WEEKENDNoneItem 4 Reservation SelectRESV_NUMBERRESV_DATERESV_NIGHTSSPOT_NUMBERCAMPER_NUMBERRESV_RATERESV_DEPOSITNoneItem 5

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%

The following three tables make up a simple reservation system for a small campground. The database should allow for a camper to make multiple reservations for future dates and for a camping spot to have several reservations for upcoming visits.

Table: Camper

CAMPER_NUMBER

1000

1001

1002

1003

CAMPER_LAST_NAME

Jones

Schmidt

Williams

Cooper

CAMPER_FIRST_NAME

Jamie

Pat

Clifford

Amanda

CAMPER_ADDRESS

1278 Essex Pl

4954 Spangled Way

956 Segull Lane

P. O. Box 998877

CAMPER_CITY

Birmingham

El Paso

Portland

Portsmouth

CAMPER_STATE

AL

TX

ME

OH

CAMPER_ZIP_CODE

45251

79919

4108

45662

CAMPER_DRIVERS_LICENSE

JJ998743-98

87632434

WIL885123

765A876B897

CAMPER_EMAIL

jjones@somewhere.com

patwonderfu34l@nowhere.net

williams98342@foomail.com

coopera@nowhere.net

Table: Spot

SPOT_NUMBER

101

102

103

104

SPOT_NAME

The Pines

The Glade

Teardrop Spot

Tent In Trees

SPOT_LENGTH

55

50

20

0

SPOT_PULLTHRU

1

0

0

0

SPOT_ELECTRIC_AMPS

50

50

20

0

SPOT_WATER

1

1

1

1

SPOT_SEWER

1

1

0

0

SPOT_RATE_WEEKDAY

35

33

15

12

SPOT_RATE_WEEKEND

42

42

22

15

Table: Reservation

RESV_NUMBER

1

2

3

4

5

RESV_DATE

2015-05-15

2015-05-14

2015-05-14

2015-05-20

2016-06-01

RESV_NIGHTS

2

4

4

1

2

SPOT_NUMBER

101

103

104

101

101

CAMPER_NUMBER

1002

1000

1001

1002

1002

RESV_RATE

84

150

24

35

85

RESV_DEPOSIT

20

25

24

10

0

Identify the primary keys and foreign keys in the three tables by dropping the correct column name or names into the table. If there is no primary or foreign key then drop none as your answer.

Table

Primary Key

Foreign Key(s)

Camper

SelectCAMPER_NUMBERCAMPER_LAST_NAMECAMPER_FIRST_NAMECAMPER_ADDRESSCAMPER_CITYCAMPER_STATECAMPER_ZIP_CODECAMPER_DRIVERS_LICENSECAMPER_EMAILNoneItem 1 SelectCAMPER_NUMBERCAMPER_LAST_NAMECAMPER_FIRST_NAMECAMPER_ADDRESSCAMPER_CITYCAMPER_STATECAMPER_ZIP_CODECAMPER_DRIVERS_LICENSECAMPER_EMAILNoneItem 2

Spot

SelectSPOT_NUMBERSPOT_NAMESPOT_LENGTHSPOT_PULLTHRUSPOT_ELECTRIC_AMPSSPOT_WATERSPOT_SEWERSPOT_RATE_WEEKDAYSPOT_RATE_WEEKENDNoneItem 3 SelectSPOT_NUMBERSPOT_NAMESPOT_LENGTHSPOT_PULLTHRUSPOT_ELECTRIC_AMPSSPOT_WATERSPOT_SEWERSPOT_RATE_WEEKDAYSPOT_RATE_WEEKENDNoneItem 4

Reservation

SelectRESV_NUMBERRESV_DATERESV_NIGHTSSPOT_NUMBERCAMPER_NUMBERRESV_RATERESV_DEPOSITNoneItem 5 SelectRESV_NUMBERRESV_DATERESV_NIGHTSSPOT_NUMBERCAMPER_NUMBERRESV_RATERESV_DEPOSITCAMPER_NUMBER and SPOT_NUMBERNone
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Fundamentals of Datawarehouse
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education