Create the ROOMS table using the specification below: Table Name: ROOMS Field Name/ Data Type Size Constraints column name RID Number PRIMARY KEY RType Varchar2 25 NOT NULL Rate Number 5 Bedroom Number 5 Room_Status Varchar2 10 CID Number REFERENCES to CID in Clients Table View the table structure of the ROOMS table. Answer: Add a CHECK constraint on the RATE column in the ROOMS table. Rate must be greater than O only.

Database Systems: Design, Implementation, & Management
11th Edition
ISBN:9781285196145
Author:Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Chapter10: Transaction Management And Concurrency Control
Section: Chapter Questions
Problem 1P
icon
Related questions
icon
Concept explainers
Question
Create the ROOMS table using the specification below:
Table Name: ROOMS
Field Name/
Data Type Size
Constraints
column name
RID
Number
8.
PRIMARY KEY
RType
Varchar2
25
NOT NULL
Rate
Number
5
Bedroom
Number
Room_Status
Varchar2
10
CID
Number
REFERENCES to CID in
Clients Table
View the table structure of the ROOMS table.
Answer:
Add a CHECK constraint on the RATE column in the ROOMS table. Rate must be greater than O only.
Transcribed Image Text:Create the ROOMS table using the specification below: Table Name: ROOMS Field Name/ Data Type Size Constraints column name RID Number 8. PRIMARY KEY RType Varchar2 25 NOT NULL Rate Number 5 Bedroom Number Room_Status Varchar2 10 CID Number REFERENCES to CID in Clients Table View the table structure of the ROOMS table. Answer: Add a CHECK constraint on the RATE column in the ROOMS table. Rate must be greater than O only.
Scenario: The owner of Al Musana Hotel would like to have a database tables that will help him manage the clients
and rooms in his building. He wants to record the information about his clients and its occupancy. The hotel has three
different room types which are available for daily rent only.
As the Database Designer, perform the following tasks to help the owner of the hotel:
Create the CLIENTS table using the specification below:
Table Name: CLIENTS
Field Name/ Data Type
column name
Size
Constraints
CID
Number
8
PRIMARY KEY
CName
Varchar2
25
NOT NULL
Validate to accept
Male or Female only
Gender
Varchar2
10
Address
Varchar2
25
Contact
Number
15
Стуре
Varchar2
15
Transcribed Image Text:Scenario: The owner of Al Musana Hotel would like to have a database tables that will help him manage the clients and rooms in his building. He wants to record the information about his clients and its occupancy. The hotel has three different room types which are available for daily rent only. As the Database Designer, perform the following tasks to help the owner of the hotel: Create the CLIENTS table using the specification below: Table Name: CLIENTS Field Name/ Data Type column name Size Constraints CID Number 8 PRIMARY KEY CName Varchar2 25 NOT NULL Validate to accept Male or Female only Gender Varchar2 10 Address Varchar2 25 Contact Number 15 Стуре Varchar2 15
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Query Syntax
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
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning