I need to change this procedure to accept multi selects from a webpage drop down. What's the best way as I only know how to add single variables in SQL and dynamically this could be 2 or more multi selects with the @Code, e.g. 12 and 44CREATE PROCEDURE web_TopClientsByCompanyCode (@topnum int,@Code int,@month int,@sector int,@monthend int)ASSET ROWCOUNT @topnumSELECT Groups.CompanyName, Groups.ParentGroup, sum(Amounts.Turnover) AS Turnover, ClientSectors.Description, Groups.TAP, Groups.KAMFROM(SELECT max(companyname) as companyname, parentgroup, ClientSector, TAP, KAMfrom companies group by parentgroup, ClientSector, TAP, KAM ) GroupsLEFT JOIN (SELECT C.ParentGroup, [amtin loccur] AS TurnoverFROM Companies CLEFT JOIN zarinvreg ON zarinvreg.Customer = C.AccountCodeWHERE monthdata <= @monthAND monthdata >= @monthend--@month-11 --this gives us 12 monthsAND C.CompanyName <> '-'AND C.CompanyName is not nullAND Cocd = @Code) Amounts ON Groups.ParentGroup = Amounts.ParentGroupLEFT JOIN ClientSectors ON ClientSectors.ID = Groups.ClientSectorWHERE Amounts.Turnover is not nullAND (ClientSectors.ID = @sector OR ISNULL(@sector ,'')='')GROUP BY Groups.CompanyName, Groups.ParentGroup, ClientSectors.Description, Groups.TAP, Groups.KAMORDER BY Amounts.Turnover descSET ROWCOUNT 0GO