rank() over (partition by opt2.dim_plat_site_id, opt2.dim_site_opt_sid order by case when opt2.dm_market_flg in ('Y', 'U') then 1 else 2 end, lkp.contact_rank) as rank1,
case opt2.contact_type
when 'Buyer' then row_number() over (partition by opt2.dim_plat_site_id, opt2.dim_site_opt_sid, lkp.contact_rank order by has_name_flg desc, ship_to_flg desc , last_order_dt desc)
when 'Decision Maker' then row_number() over (partition by opt2.dim_plat_site_id, opt2.dim_site_opt_sid, lkp.contact_rank order by has_name_flg desc , last_quote_dt desc , mailability_score desc , source_ranking desc)
when 'Influencer' then row_number() over (partition by opt2.dim_plat_site_id, opt2.dim_site_opt_sid, lkp.contact_rank order by has_name_flg desc, mailability_score desc, source_ranking desc)
when 'Payer' then row_number() over (partition by opt2.dim_plat_site_id, opt2.dim_site_opt_sid, lkp.contact_rank order by has_name_flg desc, mailability_score desc, source_ranking desc) --elu 05/28/2013
else row_number() over (partition by opt2.dim_plat_site_id, opt2.dim_site_opt_sid, lkp.contact_rank order by has_name_flg desc, mailability_score desc, source_ranking desc)
end rank2
row_number() over (partition by opt3.dim_plat_site_id, opt3.dim_site_opt_sid order by rank1,rank2) as "rank",
case when "rank"<= opt3.maximum_value then 'Y' else 'N' end as include_flg
No Answer is Posted For this Question
Be the First to Post Answer
in reporting we add some new objects,how we get the count of the newly added objects to the report
what is mystery dimension?
How can you display only hidden files in UNIX
WAT IS THE MEANING OF UPGRADTION OF REPOSITORY?
what is meant by lookup caches?
2 Answers Cap Gemini, Informatica,
How u use pdf file in informatica source?
SO many times i saw "$PM parser error " .what is meant by PM?
what is the drillup & drill down?and use of the drill up and drill down?
Limitation of REPLACESTR. Is there any character limitation to it.
what is degenerated dimension table with scenario
If we are using an aggregator but forget to mention the group by port .what will be the output??
how to convert the .doc docs into .txt format using informatica