| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: Tabe Relationship
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.
"john" <nospam_at_nospam.com> wrote in message
news:eVYaa.11795$Lq.941540_at_stones...
> Hi,
>
> I am creating a web site which will have different types of users:
> Administrators, clients and staff. Is it possible/good practice to
have 3
> tables related to one table i.e.
>
>
> USER
> user_id (PK)
> |
> ____________|____________
> | | |
> | | |
> Administrator Client Staff
> admin_id(PK) client_id(PK) staff_id(PK)
> user_id(FK) user_id(FK) user_id(FK)
>
>
> Thanks in advance for any advice offered.
>
>
Received on Mon Mar 10 2003 - 05:49:52 CST
![]() |
![]() |