PDC_REPORT_CreazioneDB/sql/storedCollaudo/C6MartPeriodico_PL_MP_S175WhiteProtection.sql
2025-06-06 19:02:52 +02:00

39 lines
766 B
SQL

-- Schema: C6MartPeriodico
-- Stored Procedure: PL_MP_S175WhiteProtection
-- [C6MartPeriodico].[PL_MP_S175WhiteProtection] 'F','QRCRLR38P10G999N'
CREATE procedure [C6MartPeriodico].[PL_MP_S175WhiteProtection]
---- Add the parameters for the stored procedure here
@Rete char(1),
@CodiceFiscale varchar(16)
AS
BEGIN
SELECT
Controvalore_Riferimento as ControvaloreRiferimento,
Componente_Performance as ComponentePerformance,
Componente_Protezione as ComponenteProtezione,
Controvalore_Prot as ControvaloreProtetto,
DataRif as DataRiferimento,
Des_Prod_Tit as DescrizioneProdotto,
Cod_Conf as Contratto
from [C6MartPeriodico].[CAPPROT_FVI]
where 1 = 1
and RETE = @Rete
and CODFIS = @CodiceFiscale
and SubProd = 'CT80'
END