JohnnyLong
Programmer
Hi,
I need some advice on the best way to solve the following:
SELECT CandidateID
FROM Notes
WHERE CONTAINS(subject, '"fish*"')
UNION
SELECT CandidateID
FROM Notes
WHERE CONTAINS(comments, '"fish*"')
UNION
SELECT CandidateID
FROM CandidatesNotes
WHERE CONTAINS(CandidateNotes, '"fish*"')
This gives me a result set of CandidateID's. I then need to Select the full candidate record from the Candidates table using the IDs. What's the best way of doing this? Is a temporary table the easist way?
Thanks for looking,
John
I need some advice on the best way to solve the following:
SELECT CandidateID
FROM Notes
WHERE CONTAINS(subject, '"fish*"')
UNION
SELECT CandidateID
FROM Notes
WHERE CONTAINS(comments, '"fish*"')
UNION
SELECT CandidateID
FROM CandidatesNotes
WHERE CONTAINS(CandidateNotes, '"fish*"')
This gives me a result set of CandidateID's. I then need to Select the full candidate record from the Candidates table using the IDs. What's the best way of doing this? Is a temporary table the easist way?
Thanks for looking,
John