ezoic

Monday, February 27, 2017

Some sample amazon redshift code


select c.target, c.dsp  from (

SELECT placement,
(case when len(placement)-len(replace(placement,'_','')) >10
then
split_part(placement,'_',9)
 end ) as target ,

 (case when len(placement)-len(replace(placement,'_','')) >10
then
split_part(placement,'_',6)
 end ) as dsp

 from

stg.dcm_xxx_placements ) c group by c.target, c.dsp ;

No comments:

Post a Comment

R is not a simple programming language, and it does better on reading excel files than python

R is not a simple programming language, and it does better on reading excel files than python . tried to read excel files to python and R. i...