Re: Question about modeling
From: -CELKO- <jcelko212_at_earthlink.net>
Date: 25 Jan 2005 11:31:10 -0800
Message-ID: <1106681470.342846.264570_at_z14g2000cwz.googlegroups.com>
Date: 25 Jan 2005 11:31:10 -0800
Message-ID: <1106681470.342846.264570_at_z14g2000cwz.googlegroups.com>
>> As I have said each contract can be associated with one or more
It sounds like a client should be modeled as an attribute of a
contract.
CREATE TABLE Contracts
departments, but I want that all those departments belongs to the same
client. In other words, departments can share contracts, but clients
can not. <<
(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 - 20:31:10 CET