![]() |
|
![]() | ||
|
Subject:
database concepts-6
Category: Computers > Software Asked by: fahd-ga List Price: $5.00 |
Posted:
26 Sep 2002 20:37 PDT
Expires: 26 Oct 2002 20:37 PDT Question ID: 69572 |
Complete the following problem using basic SQL commands. Basic SQL means not specifically tied to TSQL, SQL PL or DB 2 Versions. You a clerk at hotel SQL and I have the following table: Create table Hotel (rommno smallint not null, arrival date not null, departure date not null, guest char (30), Primary Key (roomno, arrival), Check (departure >= arrival)); Right now the Check() clause enforces the data integrity constraint that you cannot leave before you arrived, but you want more. How do I enforce the rule that I cannot add a reservation that has given an arrival date conflicting with the prior departure date for a given room? | |
| |
|
![]() | ||
|
There is no answer at this time. |
![]() | ||
|
Subject:
Re: database concepts-6
From: rbnn-ga on 03 Oct 2002 09:49 PDT |
Thanks for your questions fahd-ga. This particular question however is beyond my level of expertise. For future reference, however, I did want, however, to respond to wlk115-ga's request for clarification: researchers are permitted to answer homework questions (I am not sure where his quotation comes from but it either isn't correct or it isn't current). |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |