I have an SP that takes an argument (ContactID) and returns a row of calculated information relating to the ContactID supplied.
I want to add this to another SP as a join, is this possible?
This is what I'm trying to do..
How would I achieve this?
1DMF
"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Free Electronic Dance Music
I want to add this to another SP as a join, is this possible?
This is what I'm trying to do..
Code:
SELECT DISTINCT Contacts.ContactID,
Case When Qual.Mort_Qual = 1
Then 'Y'
Else 'N'
End
AS Quals
FROM Contacts LEFT OUTER JOIN (
SELECT Mort_Qual, ContactID FROM (EXEC spMEM_Is_Qualified(Contacts.ContactID))
) AS Qual
ON Contacts.ContactID = Qual.ContactID
How would I achieve this?
1DMF
"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Free Electronic Dance Music