Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write the SQL/TSQL to create the following views in the DB: 6. A view of the customer table that is used solely as a

  

Write the SQL/TSQL to create the following views in the DB: 6. A view of the customer table that is used solely as a mailing list (fname, Iname, street, city, state, zip) called v_customer. 7. A view that contains the hotel location (name, street, city, state, zip), phone, description of the rewards category and the number of points earned for that hotel called v_hotel. 8. A view that contains the name and email of loyalty customers called v_loyalty_cust. 9. A view that contains the hotel name, and all information about any specials that the hotel has ever offered called v_hotel_specials. 10. A view that contains the customer id, and the total number of days they have stayed in any of the hotels called v_cust_daysstayed.

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

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students also viewed these Computer Network questions

Question

A proton moves at 0.90c. What is its momentum in SI units?

Answered: 1 week ago

Question

How do you include a field in an Access query?

Answered: 1 week ago

Question

Describe the purpose of the JOIN command in relational algebra.

Answered: 1 week ago