>Thank you very much for all your help. Your solution works fine. Since every candidate has got less than 3 skills, performance may not be the issue.
>
Ravi,
Use of UDF slows down query even if there's no processing in UDF itself. Anyway, I'm glad it works for you.
--sb--