→ û Given the following schema ROOM muNo nnPrice mBeds nnCapacity | mFacilities mElec 10 80 wC 20 95 Shower 25 100 Bathtub TV CUSTOMER RESERVATION cusAddress ||cusNo rmNo| datein cusNo cusName 1000 Ahmed Aamer 1001 Sami Mohamed dateOut 09/02/2020 15/02/2020 20/04/2021 12/12/2020 18/12/2020 1000 | 20 Salalah Ibri 1001 | 25 1004 10 1004 Faisal Fares Suhar 1. Write SQL commands to create the above tables Include necessary constraints. 2. Write relational algebra expression to display names of customers who reserved a rooms with capacity less than 3 people. 3. Write SQL command to find the name of the customers who stayed in rooms that do not have a Bathtub. 4. Write SQL command to display the names of customers who did not fix the date of departure from the hotel. 5. Write SQL command to modify the attribute mPrice in the table ROOM to real number with 3 decimal places. 6. Create a VIEW which can display the rooms which are roomprice lessthan 100. Browse My Computer Attach File Click Save and Submit to save and submit. Click Save All Answers to save all answers. a ENG 4) O

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
→ û
Given the following schema
ROOM
muNo nnPrice mBeds nnCapacity | mFacilities mElec
10
80
wC
20
95
Shower
25
100
Bathtub
TV
CUSTOMER
RESERVATION
cusAddress ||cusNo rmNo| datein
cusNo cusName
1000 Ahmed Aamer
1001 Sami Mohamed
dateOut
09/02/2020 15/02/2020
20/04/2021
12/12/2020 18/12/2020
1000 | 20
Salalah
Ibri
1001 | 25
1004 10
1004 Faisal Fares
Suhar
1. Write SQL commands to create the above tables Include necessary constraints.
2. Write relational algebra expression to display names of customers who reserved a rooms with capacity less than 3 people.
3. Write SQL command to find the name of the customers who stayed in rooms that do not have a Bathtub.
4. Write SQL command to display the names of customers who did not fix the date of departure from the hotel.
5. Write SQL command to modify the attribute mPrice in the table ROOM to real number with 3 decimal places.
6. Create a VIEW which can display the rooms which are roomprice lessthan 100.
Browse My Computer
Attach File
Click Save and Submit to save and submit. Click Save All Answers to save all answers.
a
ENG 4) O
Transcribed Image Text:→ û Given the following schema ROOM muNo nnPrice mBeds nnCapacity | mFacilities mElec 10 80 wC 20 95 Shower 25 100 Bathtub TV CUSTOMER RESERVATION cusAddress ||cusNo rmNo| datein cusNo cusName 1000 Ahmed Aamer 1001 Sami Mohamed dateOut 09/02/2020 15/02/2020 20/04/2021 12/12/2020 18/12/2020 1000 | 20 Salalah Ibri 1001 | 25 1004 10 1004 Faisal Fares Suhar 1. Write SQL commands to create the above tables Include necessary constraints. 2. Write relational algebra expression to display names of customers who reserved a rooms with capacity less than 3 people. 3. Write SQL command to find the name of the customers who stayed in rooms that do not have a Bathtub. 4. Write SQL command to display the names of customers who did not fix the date of departure from the hotel. 5. Write SQL command to modify the attribute mPrice in the table ROOM to real number with 3 decimal places. 6. Create a VIEW which can display the rooms which are roomprice lessthan 100. Browse My Computer Attach File Click Save and Submit to save and submit. Click Save All Answers to save all answers. a ENG 4) O
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY