Table Design

B

Bryan Hughes

Hello,

I have a db I am developing and I am at a impasse.

I have a agency table that stores a unique ID for each agency.
Each agency has multiple program names unique to an individual agency,
and each user is assigned to an agency but can be part of multiple programs
for that agency.
Should I create a single Program Table with Agency ID and a single User
table with Agency ID for all programs and users, or should I
create a user table for each agency and put the agency programs table under
this?

-TFTH
Bryan
 
G

Guest

The structure below is based on a user not working for more than one agency.

tblAgency
AgencyID (PK)
Name
Other data fields

tblAgencyProgram
AgencyID (two field combination PK)
ProgramName

tblProgramUser
AgencyID
ProgramName
User
Set relation of PK to the same field in table below it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top