Hi! I'm working on a database that tracks postings for vacant positions, and applications to those positions.
There are four main tables, plus a few lookup tables so far.
tblPositions
PositionNo (PK)
CostCenter (Office the position is in)
ClassCode (Title of Position)
VacancyDate (Date position vacated)
tblPostings
AnnouncementNo (PK)
PositionNo (looks up to another table all the details of each position)
Then a whole mess of dates tracking each phase of the posting process (approvals, etc.)
tblApplications
ApplicationID (PK)
SSN (Foreign key to tblApplicants)
AnnouncementNo
A mess of other fields that document the process the application goes through.
tblApplicants
SSN (PK)
Last Name, etc, contact information on the applicant.
Okay, so I'm trying to figure out the relationships.
Each applicant can have many applications, so that's a one-to many. I think I'm good there... BUT
Each posting can have many applications, and each application can have many postings. (One Posting can have many applicants and one applicant can respond to many postings, provided they have the same job title.)
I looked up Many to Many relationships in Access help and I'm a little confused. It says I have to make a table to join the two other tables, but what do I use as primary key? How do I work this out?
Is there a better way?
Thanks in advance. This is probably much simpler than I think it is, but I'd really like to get it right the first time.
--Sara
There are four main tables, plus a few lookup tables so far.
tblPositions
PositionNo (PK)
CostCenter (Office the position is in)
ClassCode (Title of Position)
VacancyDate (Date position vacated)
tblPostings
AnnouncementNo (PK)
PositionNo (looks up to another table all the details of each position)
Then a whole mess of dates tracking each phase of the posting process (approvals, etc.)
tblApplications
ApplicationID (PK)
SSN (Foreign key to tblApplicants)
AnnouncementNo
A mess of other fields that document the process the application goes through.
tblApplicants
SSN (PK)
Last Name, etc, contact information on the applicant.
Okay, so I'm trying to figure out the relationships.
Each applicant can have many applications, so that's a one-to many. I think I'm good there... BUT
Each posting can have many applications, and each application can have many postings. (One Posting can have many applicants and one applicant can respond to many postings, provided they have the same job title.)
I looked up Many to Many relationships in Access help and I'm a little confused. It says I have to make a table to join the two other tables, but what do I use as primary key? How do I work this out?
Is there a better way?
Thanks in advance. This is probably much simpler than I think it is, but I'd really like to get it right the first time.
--Sara