CSCI515W2QUIZS Chapter 03&04 Use It and Quiz: Chapter 03&04

Chapter 03 Use It

Q1


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_LAST_NAMECAMPER_FIRST_NAMECAMPER_ADDRESSCAMPER_CITYCAMPER_STATECAMPER_ZIP_CODECAMPER_DRIVERS_LICENSECAMPER_EMAIL
1000JonesJamie1278 Essex PlBirminghamAL45251JJ998743-98jjones@somewhere.com
1001SchmidtPat4954 Spangled WayEl PasoTX7991987632434patwonderfu34l@nowhere.net
1002WilliamsClifford956 Segull LanePortlandME4108WIL885123williams98342@foomail.com
1003CooperAmandaP. O. Box 998877PortsmouthOH45662765A876B897coopera@nowhere.net

Table: Spot

SPOT_NUMBERSPOT_NAMESPOT_LENGTHSPOT_PULLTHRUSPOT_ELECTRIC_AMPSSPOT_WATERSPOT_SEWERSPOT_RATE_WEEKDAYSPOT_RATE_WEEKEND
101The Pines55150113542
102The Glade50050113342
103Teardrop Spot20020101522
104Tent In Trees000101215

Table: Reservation

RESV_NUMBERRESV_DATERESV_NIGHTSSPOT_NUMBERRESV_RATERESV_DEPOSIT
12015-05-15210110028420
22015-05-144103100015025
32015-05-14410410012424
42015-05-20110110023510
52016-06-0121011002850

Add the ends to the relations on the Crows Foot ERD for the campground reservation system.

Q2

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_LAST_NAMECAMPER_FIRST_NAMECAMPER_ADDRESSCAMPER_CITYCAMPER_STATECAMPER_ZIP_CODECAMPER_DRIVERS_LICENSECAMPER_EMAIL
1000JonesJamie1278 Essex PlBirminghamAL45251JJ998743-98jjones@somewhere.com
1001SchmidtPat4954 Spangled WayEl PasoTX7991987632434patwonderfu34l@nowhere.net
1002WilliamsClifford956 Segull LanePortlandME4108WIL885123williams98342@foomail.com
1003CooperAmandaP. O. Box 998877PortsmouthOH45662765A876B897coopera@nowhere.net

Table: Spot

SPOT_NUMBERSPOT_NAMESPOT_LENGTHSPOT_PULLTHRUSPOT_ELECTRIC_AMPSSPOT_WATERSPOT_SEWERSPOT_RATE_WEEKDAYSPOT_RATE_WEEKEND
101The Pines55150113542
102The Glade50050113342
103Teardrop Spot20020101522
104Tent In Trees000101215

Table: Reservation

RESV_NUMBERRESV_DATERESV_NIGHTSSPOT_NUMBERRESV_RATERESV_DEPOSIT
12015-05-15210110028420
22015-05-144103100015025
32015-05-14410410012424
42015-05-20110110023510
52016-06-0121011002850

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.

Quiz: Chapter 03

Leave a Reply

Your email address will not be published. Required fields are marked *