If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > JAVA > Foreign key points at more primary keys, how?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-17-10, 15:44
maeishoj maeishoj is offline
Registered User
 
Join Date: Mar 2010
Posts: 1
Foreign key points at more primary keys, how?

Hey guys i have my db made of 2 tables:
1 is named Personnel and is as following:
ID First Name Last Name Access Authorization (varchar (2))


the other is named Assets and is as following:
ID Description Authorized User

My problem is that 1 user can have access to more areas, so I thought to make another table called area.
This would have :
Area
X1
X2
X3
etc, and they'd be primary keys. how can i make a person having access to more areas??
I thought since Access Authorization is a foreign key could point at more primary keys (X1, X2 etc) but I have no idea how to do it!
Could someone help?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On