SlideShare a Scribd company logo
1) Create table RoomReservation for hotel management system a. Assume that the hotel classify
rooms by the number or size of beds in the room, and there are only 6 room types: Queen, King,
Twin, Hollywood twin, Double-double and Studio. Therefore, apply check constraints on
RoomType column; b. ReservationID is the primary key c. GuestEmail should not be NULL d.
Departure date should not be earlier than the arrival date Introduction to Database concepts e.
Name all constraints properly 2) Insert two rows to the newly created table 3) Alter the table by
adding guest name and guest address 4) Set specialRequests column as Unused... and then
remove all unused columns.. 5) Modify numGuests column as NUMBER(2) and set NOT NULL

More Related Content

More from leelaelec

More from leelaelec (20)

1) The security of connected devices is paramount to the success of th.pdf
1) The security of connected devices is paramount to the success of th.pdf1) The security of connected devices is paramount to the success of th.pdf
1) The security of connected devices is paramount to the success of th.pdf
 
1) The monogastric animal's stomach is divided into four major areas t.pdf
1) The monogastric animal's stomach is divided into four major areas t.pdf1) The monogastric animal's stomach is divided into four major areas t.pdf
1) The monogastric animal's stomach is divided into four major areas t.pdf
 
1) Set the text color to navy- for all elements- 2) Set the text color.pdf
1) Set the text color to navy- for all elements- 2) Set the text color.pdf1) Set the text color to navy- for all elements- 2) Set the text color.pdf
1) Set the text color to navy- for all elements- 2) Set the text color.pdf
 
1) Platt Corporation paid $87-500 for a 70- interest in Suve Corporati.pdf
1) Platt Corporation paid $87-500 for a 70- interest in Suve Corporati.pdf1) Platt Corporation paid $87-500 for a 70- interest in Suve Corporati.pdf
1) Platt Corporation paid $87-500 for a 70- interest in Suve Corporati.pdf
 
1) Solve the generalized eigenvalue problem- Reference from 114- - c.pdf
1) Solve the generalized eigenvalue problem-   Reference from 114- - c.pdf1) Solve the generalized eigenvalue problem-   Reference from 114- - c.pdf
1) Solve the generalized eigenvalue problem- Reference from 114- - c.pdf
 
1) Please share an experience that you have working with individuals f.pdf
1) Please share an experience that you have working with individuals f.pdf1) Please share an experience that you have working with individuals f.pdf
1) Please share an experience that you have working with individuals f.pdf
 
1) How do fossils help geologists determine ages of rocks- 2) Why is r.pdf
1) How do fossils help geologists determine ages of rocks- 2) Why is r.pdf1) How do fossils help geologists determine ages of rocks- 2) Why is r.pdf
1) How do fossils help geologists determine ages of rocks- 2) Why is r.pdf
 
1) Income from an employment may be the only source for some individua.pdf
1) Income from an employment may be the only source for some individua.pdf1) Income from an employment may be the only source for some individua.pdf
1) Income from an employment may be the only source for some individua.pdf
 
1) Grant Hill discusses the challenge teams have to get younger fans o.pdf
1) Grant Hill discusses the challenge teams have to get younger fans o.pdf1) Grant Hill discusses the challenge teams have to get younger fans o.pdf
1) Grant Hill discusses the challenge teams have to get younger fans o.pdf
 
1) For the purpose of Cost-Saving- your organization is planning to mo.pdf
1) For the purpose of Cost-Saving- your organization is planning to mo.pdf1) For the purpose of Cost-Saving- your organization is planning to mo.pdf
1) For the purpose of Cost-Saving- your organization is planning to mo.pdf
 
1 Explore the extracted files and search for interesting information-.pdf
1 Explore the extracted files and search for interesting information-.pdf1 Explore the extracted files and search for interesting information-.pdf
1 Explore the extracted files and search for interesting information-.pdf
 
1) Explain the different types of firewalls- 2) How is a firewall diff.pdf
1) Explain the different types of firewalls- 2) How is a firewall diff.pdf1) Explain the different types of firewalls- 2) How is a firewall diff.pdf
1) Explain the different types of firewalls- 2) How is a firewall diff.pdf
 
1) General transcription factors function to activate gene expression.pdf
1) General transcription factors function to activate gene expression.pdf1) General transcription factors function to activate gene expression.pdf
1) General transcription factors function to activate gene expression.pdf
 
1) describe what a function is and how it can be used- 2) describe th.pdf
1) describe what a function is and how it can be used-  2) describe th.pdf1) describe what a function is and how it can be used-  2) describe th.pdf
1) describe what a function is and how it can be used- 2) describe th.pdf
 
1) Define the term Market Potential- and why is it an important to a f.pdf
1) Define the term Market Potential- and why is it an important to a f.pdf1) Define the term Market Potential- and why is it an important to a f.pdf
1) Define the term Market Potential- and why is it an important to a f.pdf
 
1) Explain the impact technology has on control- 2) Do you believe tha.pdf
1) Explain the impact technology has on control- 2) Do you believe tha.pdf1) Explain the impact technology has on control- 2) Do you believe tha.pdf
1) Explain the impact technology has on control- 2) Do you believe tha.pdf
 
1) Discuss various theories of financing a public transport infrastruc.pdf
1) Discuss various theories of financing a public transport infrastruc.pdf1) Discuss various theories of financing a public transport infrastruc.pdf
1) Discuss various theories of financing a public transport infrastruc.pdf
 
1 The United States is considered a net debtor nation- a net creditor.pdf
1 The United States is considered a net debtor nation- a net creditor.pdf1 The United States is considered a net debtor nation- a net creditor.pdf
1 The United States is considered a net debtor nation- a net creditor.pdf
 
1) Compare and contrast the leadership traits discussed in the TedTalk.pdf
1) Compare and contrast the leadership traits discussed in the TedTalk.pdf1) Compare and contrast the leadership traits discussed in the TedTalk.pdf
1) Compare and contrast the leadership traits discussed in the TedTalk.pdf
 
1) Create a SAGE function PI(n) prints all prime numbers below n- 2) C.pdf
1) Create a SAGE function PI(n) prints all prime numbers below n- 2) C.pdf1) Create a SAGE function PI(n) prints all prime numbers below n- 2) C.pdf
1) Create a SAGE function PI(n) prints all prime numbers below n- 2) C.pdf
 

Recently uploaded

Recently uploaded (20)

The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
 
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
Operations Management - Book1.p  - Dr. Abdulfatah A. SalemOperations Management - Book1.p  - Dr. Abdulfatah A. Salem
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
 
size separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceuticssize separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceutics
 
Benefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational ResourcesBenefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational Resources
 
Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...
Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...
Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...
 
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdfTelling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Keeping Your Information Safe with Centralized Security Services
Keeping Your Information Safe with Centralized Security ServicesKeeping Your Information Safe with Centralized Security Services
Keeping Your Information Safe with Centralized Security Services
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
How to Manage Notification Preferences in the Odoo 17
How to Manage Notification Preferences in the Odoo 17How to Manage Notification Preferences in the Odoo 17
How to Manage Notification Preferences in the Odoo 17
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
 
2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptx2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptx
 
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfDanh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
 
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptBasic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
 
Basic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & EngineeringBasic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
 
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxMatatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
 

1) Create table RoomReservation for hotel management system a- Assume.pdf

  • 1. 1) Create table RoomReservation for hotel management system a. Assume that the hotel classify rooms by the number or size of beds in the room, and there are only 6 room types: Queen, King, Twin, Hollywood twin, Double-double and Studio. Therefore, apply check constraints on RoomType column; b. ReservationID is the primary key c. GuestEmail should not be NULL d. Departure date should not be earlier than the arrival date Introduction to Database concepts e. Name all constraints properly 2) Insert two rows to the newly created table 3) Alter the table by adding guest name and guest address 4) Set specialRequests column as Unused... and then remove all unused columns.. 5) Modify numGuests column as NUMBER(2) and set NOT NULL