Lets say I have a SP that has a SELECT statements as follows,
SELECT
SELECT product_id, product_price FROM product WHERE product_type IN (\'AA\',\'BB\
create a user-defined function that will convert the comma separated value into table, and by join this two can get the desired result.
for more