PDC_REPORT_CreazioneDB/sql/storedCollaudo/C6MartPeriodico_CREA_FIRMA_PROMOTORE.sql
2025-06-09 17:09:11 +02:00

8 lines
254 B
SQL

CREATE procedure [C6MartPeriodico].[CREA_FIRMA_PROMOTORE] as
begin
update [C6StagingPeriodico].[ADS4WS_PROMOTORI]
set firma = case when rete = 'F' then 'R'+codice
else 'P'+codice end,
prefisso = case when rete = 'F' then 'R'
else 'P'end
end