July 19, 2006 at 6:56 am
SELECT a.Applicant Name, a.Specialization
FROM [ApplicantTable] a
LEFT OUTER JOIN [ShortlistTable] s
ON s.ApplicantName = a.ApplicantName
WHERE a.Specialization = @Specialization
AND ISNULL(s.EmployeeID,0) <> @EmployeeID
Far away is close at hand in the images of elsewhere.
Anon.
July 19, 2006 at 7:14 am
Right on spot, if not the case where original poster actually has an employee with id 0.
Change code above to
SELECT a.ApplicantName,
a.Specialization
FROM @Applicant a
LEFT JOIN @Shortlist s ON s.ApplicantName = a.ApplicantName
WHERE a.Specialization = @Specialization
AND (s.EmployeeID <> @EmployeeID OR s.EmployeeID IS NULL)
N 56°04'39.16"
E 12°55'05.25"
July 19, 2006 at 7:28 am
E&OE ![]()
Far away is close at hand in the images of elsewhere.
Anon.
July 21, 2006 at 7:44 pm
I'll bite
... what is "E&OE"?
--Jeff Moden
Change is inevitable... Change for the better is not.
July 24, 2006 at 2:07 am
"Errors and Omissions Excepted" ![]()
Far away is close at hand in the images of elsewhere.
Anon.
Viewing 5 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply