Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SQL Adventure Tours database is shown below. You need to archive all Reservations if trips occurred before Jan-1, 2016. Similarly, if a Customer's last Reservation

SQL

Adventure Tours database is shown below. You need to archive all Reservations if trips occurred before Jan-1, 2016.

Similarly, if a Customer's last Reservation occurred before Jan-1, 2016 , archive them as well. Assume the Trips and Guides remain current, and don't need archiving.

Guide (GuideNum, LastName, Firstname)

Trip (TripID, TripName, Location, State, Type, Season)

Customer (CustomerNum, CustomerName)

Reservation (ReservationID, TripID, TripDate, NumPersons, TripPrice, CustomerNum)

TripGuides (TripID, GuideNum)

Questions:

1. Create a view that will be used to archive Reservation table

2. Create a view that will be used to archive Customer table

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_2

Step: 3

blur-text-image_3

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

OpenStack Trove

Authors: Amrith Kumar, Douglas Shelley

1st Edition

1484212215, 9781484212219

More Books

Students also viewed these Databases questions

Question

Identify six mechanisms responsible for antibiotic resistance.

Answered: 1 week ago

Question

2. KMPG LLP

Answered: 1 week ago

Question

5. Wyeth Pharmaceuticals

Answered: 1 week ago