HiI am using below code to fetch the data hit our webserver from different website or engine.ex: If I pass the parameter Ref as google and the dates, will fetch the data (hits) from google.I have created a table (PoList) to have names like google,amazon,aol upto 14 names.My Question : How do I filter all (hits) the data which the name (Ref) is NOT in the PoList table. Thanks in advanceCREATE PROCEDURE sp_Portals@Ref as nvarchar(255),@SDate as Decimal(18,0),@EDate as Decimal(18,0)ASSELECT COUNT(b.Pcode) AS totclicks, case when b.Pcode = 'NPF' then b.Pcode + '-- No Products Found'else a.prodmodelend as prodmodel,SUM(c.orderTot) AS [Sales Total], COUNT(c.cusID) AS NumSales,b.Pcode as CodeFROM CusDetails c RIGHT OUTER JOIN View1 b LEFT OUTER JOIN Products a ON COALESCE (b.ProdID, 0) = a.ID ON c.sessID = b.SessIDWHERE (b.Referer LIKE '%' + @Ref+ '%') AND (b.theDate >= @SDate) AND (b.theDate <= @EDate)GROUP BY b.Pcode, a.prodmodelORDER BY totclicks DESCGO