I'm getting two columns from two different tables using sql server 2005.. For that I used the following query..
SELECT [MHD].JobPostingId,
[C].CandidateName
FROM
Candidate as C RIGHT JOIN MemberHiringDetails MHD
ON [MHD].MemberId=[C].Id
It returns the following data:
JobPostingId CandidateName
60 aaa
60 bbb
63 aaa
NULL means, that candidate is erased from that table.. But I need output as follows:
JobPostingId CandidateName
60 aaa, bbb
63 aaa
How to do this..? If it need stored procedure means, ok.. All I need is solution..