Question
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get StartedRecommended Textbook for
Concepts of Database Management
Authors: Philip J. Pratt, Mary Z. Last
8th edition
1285427106, 978-1285427102
Students also viewed these Computer Network questions
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
View Answer in SolutionInn App