Add a CHECK constraint on the BEDROOOM column in the ROOMS table. It must accept a value from 1 to 5 only.

Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter8: Working With Advanced Functions
Section: Chapter Questions
Problem 2.9CP
icon
Related questions
Question
Add a CHECK constraint on the BEDROOM column in the
ROOMS table. It must accept a value from1 to 5 only.
Transcribed Image Text:Add a CHECK constraint on the BEDROOM column in the ROOMS table. It must accept a value from1 to 5 only.
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
Bedroom
Number
5
Room Status
Varchar2
10
REFERENCES to CID in
Clients Table
CID
Number
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 Bedroom Number 5 Room Status Varchar2 10 REFERENCES to CID in Clients Table CID Number
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Multiple 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
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
CMPTR
CMPTR
Computer Science
ISBN:
9781337681872
Author:
PINARD
Publisher:
Cengage
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning