Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Show all members with qual that comprises multiple competencies

Status
Not open for further replies.

apkohn

Technical User
Nov 27, 2000
62
AU
Hey all, this is a bit of a tricky one (well to me at least).

I have a database to record the training qualifications of members. To get a qualification, you have to pass all the designated competencies for that qualification (each qualification can have 1 or more competencies).

Now the database has the follwoing tables;
tblMember
MemberID

tblCompetency:
CompetencyID
CompetencyName

tblQualifications:
QualID
QualName

tblCompetencyForQual: (permits many-many linking of competency and qual)
CompetencyForQualID
QualID
CompetencyID

tblCompetencyAttained: (permits many-many linking of competency and member)
CompetencyAttainedID
CompetencyID
Member ID

Now, I want a query that will show all members that will consist of basically two columns, showing:
MemberID and QualificationAttained.

Is there a generic, SQL way to do this, or do I need to write a VB procedure to step through the info.

Thanks in advance.
 
If the number of CompetencyAttained equals the number of CompetencyForQual, does that mean the Qualifications has been attained? If not, how do you tell?
 
Thanks Remou. I hadn't thout of comparing the number of comptencies attained in a qualification, to the total number required in a qualification. I was stuck in the mindset of thinkng:

For each competency in qualification, make sure the member has it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top