Re: Tabe Relationship
Date: Tue, 11 Mar 2003 11:53:03 +0100
On Mon, 10 Mar 2003 18:00:49 +0100
"Damjan S. Vujnovi─‡" <damjan_at_galeb.etf.bg.ac.yu> wrote:
> : I wouldn't consider it bad practice to do as outlined below. I would,
> : however, add an indication in the USER table as to what Type of user
> : it is -- an Administrator, a Client, or Staff. Without such a Type
> : field,
> : you're gonna have to check all 3 tables to see which it's in. The Type
> : will point it at a specific table.
> What if USER can be both Administrator and Staff (or any other combination)?
In that case I would consider a composite pattern.
karl Received on Tue Mar 11 2003 - 11:53:03 CET