Welcome, guest! Login / Register - Why register?
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 ...............t3_mercado_bpe_prestamo_tarjeta


			CREATE TABLE ...............t3_mercado_bpe_prestamo_tarjeta
			WITH ( format = 'Parquet', 
				   parquet_compression = 'SNAPPY', 
				   partitioned_by = ARRAY['PERIODO'], 
				   external_location= 's3://.........................................../t3_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

Your Name: Code Language: