i have n number of records in my source, i want first and
last record to my target. how can u implement this scenario .
Answer Posted / rakesh
use 2 rank transformations, 1st one with top1 and 2nd one with bottom1 and connect them to 2 instances of target..
Is This Answer Correct ? | 3 Yes | 8 No |
Post New Answer View All Answers
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
if we have a delimiters at unwanted places in a flat file how can we over come those.
Why sorter is an active transformation?
What is the format of informatica objects in a repository? What are the databases that informatica can connect to windows?
What is standalone command task?
What is a joiner transformation and why it is an active one?
What is substr in informatica?
State the limitations where we cannot use joiner in the mapping pipeline?
On which transformations you created partitions in your project?
What are roles and groups and benefits of using them?
What are junk dimensions?
COM components can be used in Informatica
what kind of issue you will get in environment? (we ll call help desk to raise ticket rite?
What do you understand by SOA of Informatica?
What is a code page?