rrchowdhary
Programmer
Hi all
I am struggling to get this query right but without any success. Any help would be really helpful
here is my query
Thanks
RR
I am struggling to get this query right but without any success. Any help would be really helpful
here is my query
Code:
SELECT * FROM tb_filters
WHERE Id=@filterId AND
CASE @SectionFilter
WHEN 'NeedsAndRisks' THEN sq.NeedsAndRisks
IN(SELECT item from dbo.fnSplit(@ScoreFilter, ','))
WHEN 'SupportPlanning' THEN sq.SupportPlanning
IN(SELECT item from dbo.fnSplit(@ScoreFilter, ','))
Thanks
RR