Google Answers Logo
View Question
 
Q: database concepts-6 ( No Answer,   1 Comment )
Question  
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?

Request for Question Clarification by wlk115-ga on 27 Sep 2002 08:36 PDT
This series of questions looks like a Homework Assignment, in which
case we can’t answer them for you. Google Answer Researchers are not
allowed to do your homework for you.
Their policy reads, in part "[...]we do not condone cheating or
encourage customers to use this service in lieu of doing their own
schoolwork[...]"

Clarification of Question by fahd-ga on 28 Sep 2002 11:05 PDT
thank you for your note.
the questions I am posting (asking) are not a school related
questions.
they are methods for me to establish some understanding as I am
educating myself about materials I am rearing and coming across.
Answer  
There is no answer at this time.

Comments  
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).

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

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 Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy