-- =============================================
-- Author:		<Author,,Name>
-- Create date: <Create Date,,>
-- Description:	<Description,,>
-- =============================================
--[C6Mart].[GESTIONE_S_Intermediari]  'S','GHGRTI63T44L219D'
--[C6Mart].[GESTIONE_S_Intermediari]  'F','BRTVTR64T13L219G'
CREATE procedure [C6Mart].[GESTIONE_S_Intermediari] 
	-- Add the parameters for the stored procedure here
	-- Add the parameters for the stored procedure here
	@Rete char(1), 
	@CodiceCliente varchar(16)
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SELECT DISTINCT INTERMEDIARIO
	FROM	C6Mart.PATRIMONIO_TERZI
	WHERE RETE = @Rete
	AND COD_FISCALE = @CodiceCliente
END