I have 1 Table which is named as ProductMaster.Another Table which is VendorMaster. Now i want to find all the products from specified Vendormaster.
So i want to use
You could just use
SELECT * FROM ProductMaster WHERE VendorId IN ( SELECT DISTINCT VendorId FROM VendorMaster WHERE PATINDEX('%'+VendorName+'%',@VendorNameCommaSeparated)>0 )