SELECT CName, cPhoneNo FROM CUSTOMER WHERE CNo IN (SELECT CNo FROM BOOKING WHERE rNo IN (SELECT rNo FROM ROOM WHERE type = 'Deluxe')); i. Describe the expected output of the query.

A Guide to SQL
9th Edition
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Philip J. Pratt
Chapter5: Multiple-table Queries
Section: Chapter Questions
Problem 5SCG: Repeat Exercise 4, but this time use the EXISTS operator in your query.
icon
Related questions
Question

DO NOT COPY FROM OTHER WEBSITES

Upvote guarenteed for a correct and detailed answer. Thank you!!!

Given the following subquěry:
SELECT CName, cPhoneNo FROM CUSTOMER
WHERE CNo IN (SELECT cNo FROM BOOKING
WHERE rNo IN (SELECT rNo FROM ROOM
WHERE type 'Deluxe'));
i.
Describe the expected output of the query.
i.
Rewrite the query using join method.
d.
Transcribed Image Text:Given the following subquěry: SELECT CName, cPhoneNo FROM CUSTOMER WHERE CNo IN (SELECT cNo FROM BOOKING WHERE rNo IN (SELECT rNo FROM ROOM WHERE type 'Deluxe')); i. Describe the expected output of the query. i. Rewrite the query using join method. d.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Table
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr