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

looking for a man

 I am a mid aged woman. I live in southern california.  I was born in 1980. I do not have any kid. no compliacted dating.  I am looking for ...