Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
[email protected] webmail now available. Want one? Go here.
Cannot use outlook/hotmail/live here to register as they blocking our mail servers. #microsoftdeez
Obey the Epel!

Paste

Pasted as SQL by registered user vvillacorta ( 6 months ago )
drop table DLAB_PROGRAMADATOSVPC.NOMBRE_TABLA;
CREATE MULTISET TABLE DLAB_PROGRAMADATOSVPC.NOMBRE_TABLA as (
WITH 
VAR as
(
--sel max(a.FecInformacion_Dt) FECHA 
--, CAST( (CAST (max(a.FecInformacion_Dt) AS FORMAT 'YYYYMM')) AS CHAR(6)) PERIODO
--from E_DW_VIEWS.V_MST_SDA_SOLICITUD a
--where a.FecInformacion_Dt = (SELECT MAX(FecInformacion_Dt) FROM  E_DW_VIEWS.V_MST_SDA_SOLICITUD WHERE FecInformacion_Dt>=ADD_MONTHS(CURRENT_DATE,-7)) --TO_DATE('20230531','YYYYMMDD')--cambiar a cierre de mes
)
-- QUERY
) WITH DATA PRIMARY INDEX (LLAVE1, LLAVE12);

 

Revise this Paste

Your Name: Code Language: