L
Lynne
I'm a big novice to SQL and access so I appologize ahead of time:
But, I have a database that includes student records, current jobs
that are open, companies offering those jobs, recruiters for those
companies, and skills those jobs require.
I was trying to write a query that would list only jobs that required
BOTH communication and leadership skills.
Tried using "AND" and that simply returned nothing.. because no single
record had both Leadership and Communication in it's "row". Using
"OR" I get, of course, duplicate records that have both the skills, as
well as single records that have only one of the skills.
I thought maybe I could somehow do a count and return only records
that appeared >1 times... didn't work.
Any help?
Thank you
Abigael
---
Current Access SQL (generated VIA design view):
SELECT Job.JobID, Job.JobTitle, Job.JobStatus, Job.JobDescription,
Job.RID, Job.JobLocation, Job.JobType, Skill.SkillName
FROM Skill INNER JOIN (Job INNER JOIN JobSkills ON Job.JobID =
JobSkills.JobID) ON Skill.SkID = JobSkills.SkID
GROUP BY Job.JobID, Job.JobTitle, Job.JobStatus, Job.JobDescription,
Job.RID, Job.JobLocation, Job.JobType, Skill.SkillName
HAVING (((Skill.SkillName)="Leadership" Or
(Skill.SkillName)="Communication"));
But, I have a database that includes student records, current jobs
that are open, companies offering those jobs, recruiters for those
companies, and skills those jobs require.
I was trying to write a query that would list only jobs that required
BOTH communication and leadership skills.
Tried using "AND" and that simply returned nothing.. because no single
record had both Leadership and Communication in it's "row". Using
"OR" I get, of course, duplicate records that have both the skills, as
well as single records that have only one of the skills.
I thought maybe I could somehow do a count and return only records
that appeared >1 times... didn't work.
Any help?
Thank you
Abigael
---
Current Access SQL (generated VIA design view):
SELECT Job.JobID, Job.JobTitle, Job.JobStatus, Job.JobDescription,
Job.RID, Job.JobLocation, Job.JobType, Skill.SkillName
FROM Skill INNER JOIN (Job INNER JOIN JobSkills ON Job.JobID =
JobSkills.JobID) ON Skill.SkID = JobSkills.SkID
GROUP BY Job.JobID, Job.JobTitle, Job.JobStatus, Job.JobDescription,
Job.RID, Job.JobLocation, Job.JobType, Skill.SkillName
HAVING (((Skill.SkillName)="Leadership" Or
(Skill.SkillName)="Communication"));