Psst.. new poll here.
[email protected] web/email 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 Plain Text by registered user vvillacorta ( 3 years ago )
DROP TABLE IF EXISTS ...............HM_MERCADO_BPE_PRESTAMO_TARJETA
CREATE TABLE ...............HM_MERCADO_BPE_PRESTAMO_TARJETA
WITH ( format = 'Parquet',
parquet_compression = 'SNAPPY',
partitioned_by = ARRAY['PERIODO'],
external_location= 's3://.........................................../HM_MERCADO_BPE_PRESTAMO_TARJETA/'
)
AS (
SELECT CODSBS,
COD_EMPRESA,
SUM(MTOSALDO_REAJUSTADO) AS SALDO_AJUSTADO,
PERIODO
FROM ...............T2_SALDO_MERCADO_SF_REAJUSTADO
WHERE 1 = 1
AND FLG_BPE_TIMELINE = 1
AND TIPO_PRODUCTO = 'COL. DIRECTAS'
AND PRODUCTO IN ('PRESTAMOS','TARJETAS DE CREDITO')
GROUP BY PERIODO,
CODSBS,
COD_EMPRESA
)
Revise this Paste