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

Home -> Community -> Usenet -> comp.databases.theory -> Re: Question about modeling

Re: Question about modeling

From: -CELKO- <jcelko212_at_earthlink.net>
Date: 25 Jan 2005 11:31:10 -0800
Message-ID: <1106681470.342846.264570@z14g2000cwz.googlegroups.com>


>> As I have said each contract can be associated with one or more
departments, but I want that all those departments belongs to the same client. In other words, departments can share contracts, but clients can not. <<

It sounds like a client should be modeled as an attribute of a contract.

CREATE TABLE Contracts
(contract_id INTEGER NOT NULL PRIMARY KEY, client_id INTEGER NOT NULL
REFERENCES Clients(client_id)
ON DELETE CASCADE
    ON UPDATE CASCADE,
..); Received on Tue Jan 25 2005 - 13:31:10 CST

Original text of this message

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