Re: key constraint

From: Jan Hidders <hidders_at_REMOVE.THIS.win.tue.nl>
Date: 14 Apr 2001 09:06:02 GMT
Message-ID: <9b93tq$l3u$1_at_news.tue.nl>


Jian Xu wrote:
> i'm doing a database project, and met one question about the key
> constraints. what the question asked is simply " Drop key constraint
> from the table Cust_Order relation." i just dropped the primary key
> constraint for that relation, but i'm confused with the "not null"
> constraint. do i need to drop that constraint also?

Not neccesarily. The question is why you are dropping the key constraint. Is it for efficiency reasons or did you make a conceptual mistake in your data model? In the first case the not-null should definitely stay, in the second case you simply have to rethink if they may be null or not.

-- 
  Jan Hidders
Received on Sat Apr 14 2001 - 11:06:02 CEST

Original text of this message