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

Post New Answer

More Informatica Interview Questions

in reporting we add some new objects,how we get the count of the newly added objects to the report

0 Answers   HP,


what is mystery dimension?

1 Answers  


How can you display only hidden files in UNIX

4 Answers   Cognizant, L&T,


WAT IS THE MEANING OF UPGRADTION OF REPOSITORY?

1 Answers   Wipro,


what is meant by lookup caches?

2 Answers   Cap Gemini, Informatica,






How u use pdf file in informatica source?

2 Answers   Ericsson, HP, IBM,


SO many times i saw "$PM parser error " .what is meant by PM?

1 Answers  


what is the drillup & drill down?and use of the drill up and drill down?

1 Answers   IBM,


Limitation of REPLACESTR. Is there any character limitation to it.

1 Answers   CTS,


what is degenerated dimension table with scenario

2 Answers   HCL,


If we are using an aggregator but forget to mention the group by port .what will be the output??

11 Answers   Nomura, TCS,


how to convert the .doc docs into .txt format using informatica

4 Answers  


Categories