Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Creating a table and a constraint

Creating a table and a constraint

From: JellyBum <......_at_......com>
Date: Fri, 26 Mar 2004 09:18:02 -0000
Message-ID: <vyS8c.200$X1.44@newsfe1-win>


Hi there, having a problem working out whats needed here.

Im trying to create a table, this table is allowed to be null, but if its not then it must meet some other criteria. I know basically what im doing but cant geta few things im trying todo. So far ive got:

CREATE TABLE SystemUsers ( Staff_id char (3) CONSTRAINT pk_SU Primary Key ( Staff_id), Manager_id char (3)
now need it so, if a value has been entered into Manager_id it must match a value in Staff_id.

Havent got a clue how to go about this? Cant find this specific thing in my book either. Any help is apreciated Received on Fri Mar 26 2004 - 03:18:02 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US