Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Populate the following tables using CREATE TABLE and make a spoolscript in a file named colonial.sql GUIDE (Guide_Num, Last_Name, First_Name, Address, City, State, Postal_Code,

1. Populate the following tables using CREATE TABLE and make a spoolscript in a file named colonial.sql

GUIDE(Guide_Num, Last_Name, First_Name, Address, City, State, Postal_Code, Phone_Num, Hire_Date) Primary Key: Guide_Num

CUSTOMERS(Customer_Num, Last_Name, First_Name, Address, City, State, Postal_Code, Phone)

Primary Key: Customer_Num

TRIP(Trip_Id, Trip_Name, Start_Location, State, Distance, Max_Grp_Size, Type, Season)

Primary Key: Trip_Id

RESERVATION(Reservation_Id, Trip_Id, Trip_Date, Num_Persons, Trip_Price, Other_Fees, Customer_Num) Primary Key: Reservation_Id (also a Surrogate Key)

Alternate Key: Trip_Id + Trip_Date + Customer_Num

Foreign Key: Trip_Id References TRIP

Foreign Key: Customer_Num References CUSTOMERS

TRIP_GUIDES(Trip_Id, Guide_Num)

Primary Key: Trip_Id + Guide_Num

Foreign Key: Trip_Id References TRIP

Foreign Key: Guide_Num References GUIDE

2. Create a spool script named colonialinput.sql which uses INSERT INTO commands to insert the following data:

image text in transcribedimage text in transcribedimage text in transcribed

image text in transcribedimage text in transcribed

GUIDE CITY STATE POSTAL CODE PHONE NUM HIRE DATE GUIDE NUM LAST NAME FIRST NAME ADDRESS Abrams Williamsburg MA 617-555-6032 6/3/2012 AM01 54 Quest Ave 01096 140 Oakton Rd. Jaffrey BR01 AV4/2012 Devon Harley 25 Old Ranch Rd. Sunderland MA 01375 781-555-7767 1/s/2012 DH01 Gzol Gregory Zach 7 Moose Head Rd. Dummer NH 035ss 603-555-8765 11/4/2012 KS01 Ekiley Susan 943 Oakton Rd. Jaffrey NII 452 4/8/2013 603-555-1230 9 Congaree Ave. Fraconia. 603-555-0003 6/10/2013 Ray 24 Shenandoah Rd. Springfield MA 01101 MR01 Marston 781-555-2323 9/14/2015 RI101 Rowan Ilal 04660 12 Heather Rd Mount Desert ME 207-555-9009 6/2/2014 Lori 15 Riverton Rd Coventry DVT S02-555-3339 SL01 Stevens 05825 9/5/2014 Unser Glory 342 Pineview St Danbury, CT 06s10 2/2/2015 UG01 203-555-8534

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

Database Concepts

Authors: David M Kroenke, David J Auer

6th Edition

0132742926, 978-0132742924

More Books

Students also viewed these Databases questions

Question

Explain the strength of acid and alkali solutions with examples

Answered: 1 week ago

Question

Introduce and define metals and nonmetals and explain with examples

Answered: 1 week ago

Question

Why do HCMSs exist? Do they change over time?

Answered: 1 week ago