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: two tables needing unique USER_ID to be referenced by other tables

Re: two tables needing unique USER_ID to be referenced by other tables

From: --CELKO-- <71062.1056_at_compuserve.com>
Date: 26 Oct 2001 17:05:52 -0700
Message-ID: <c0d87ec0.0110261605.34eb77d7@posting.google.com>


>> I need to have an EMPLOYEE_PROFILE table and GUEST_PROFILE table
that both have a PK of USER_ID. USER_ID must be unique for both tables <<

Why not one table with a flag that tells you if this is a guest or an employee? leanb out the guests when you are finished with them -- say, by looking at a time stamp ("Guests and fish smell bad after three days" - Chinese Proverb). I am assuming that guests look like a special case of employees, but with limits on their access rights. These limitations could be put into DEFAULT clauses, so that just getting the guest would automatically create the right profile. Received on Fri Oct 26 2001 - 19:05:52 CDT

Original text of this message

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