-- Schema: C6Mart
-- Stored Procedure: PL_S51ContoCorrenteAI


-- =============================================
-- Author:		<Author,,Name>
-- Create date: <Create Date,,>
-- Description:	<Description,,>
-- =============================================
-- [C6Mart].[PL_S51ContoCorrenteAI]  'F', 'SMPSMN76C26L157Y'
CREATE procedure [C6Mart].[PL_S51ContoCorrenteAI] 
	-- Add the parameters for the stored procedure here
	-- Add the parameters for the stored procedure here
	@Rete char(1), 
	@CodiceFiscale varchar(16)
AS
BEGIN

	SELECT     
		CCTerzi.INTERMEDIARIO,
		CCTerzi.COD_CC AS ContoCorrente,
		CCTerzi.SALDO,
                 null as creditrisk,
        'n.a.' as creditriskstring,
		0.00 as var
	FROM       
		C6Mart.ANAG_CC_Terzi CCTerzi
	WHERE 
		CCTerzi.rete= @Rete
		AND CCTerzi.cod_fiscale= @CodiceFiscale

END




