Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


I want expect first and last record remaining all records will be loaded into target? which transformations we can use?

Answers were Sorted based on User's Feedback



I want expect first and last record remaining all records will be loaded into target? which transfor..

Answer / ravikumar2614

Data flow like:
SRC-->SQ-->SEQ_GEN-->EXP-->AGGR-->FLTR-->TGT

create new port as M_PORT in Exp and leave empty.
write a logic in AGGR for M_PORT as MAX(SEQ_PORT)
Write a logic in FLTR as "SEQ_PORT!=1 AND M_PORT-SEQ_PORT!=0"

If my approach is wrong correct me on ravi.infop@gmail.com

Is This Answer Correct ?    14 Yes 5 No

I want expect first and last record remaining all records will be loaded into target? which transfor..

Answer / tanay

You can use Head and Tail commands in UNIX to achieve the
same. Please correct me if i am wrong.

Is This Answer Correct ?    5 Yes 2 No

I want expect first and last record remaining all records will be loaded into target? which transfor..

Answer / sudha

Src->sq->seq_gen->exp->agg->flt->tgt

create new port as M_PORT in Exp and leave empty.
write a logic in AGGR for M_PORT as MAX(SEQ_PORT)
Write a logic in FLTR as "SEQ_PORT!=1 AND SEQ_PORT!=m_port"

Please correct me if am wrong.

Is This Answer Correct ?    5 Yes 2 No

I want expect first and last record remaining all records will be loaded into target? which transfor..

Answer / rajesh

Use head and tail command(Pre session command) write it into two files.Use transformation to read that files as per your requirement

Is This Answer Correct ?    0 Yes 0 No

I want expect first and last record remaining all records will be loaded into target? which transfor..

Answer / kuldeep singh rathore

Src->sq->seq_gen->exp\_joiner->flt->tgt
---------->agg/


create a new port for count in agg and one dual port we assign 1 in that
and in exp also we add a port dual =1
we give condition in joiner on dual port
Write a logic in FLTR as "SEQ_PORT!=1 AND (count-SEQ_PORT)!=0"

Is This Answer Correct ?    0 Yes 0 No

I want expect first and last record remaining all records will be loaded into target? which transfor..

Answer / ashok

Sequence Generator

Is This Answer Correct ?    1 Yes 7 No

Post New Answer

More Informatica Interview Questions

Hi I'm new in Informatica. Can you show me a mapping sample on how to piviot the records? Thanks Robin

1 Answers  


Can we use unconnected lookup as dynamic lookup?

5 Answers   ITC Infotech, TCS, Wipro,


Briefly explain your complete project(sales) flow, (ie. from source received from client, transformations, then despatch to end user) what are all the process. Kindly give step by step process.

0 Answers   TCS,


My source is this year 01/jun/2014 04/may/2015 09/mar/2017 my desired output is day month ye 01 jun 2014 04 may 2015 09 mar 2017 how do i acheive this

2 Answers  


I've a denormalized table EMP(empno,ename,phone,addr1,addr2,fax,email). Now I want to insert the record into target in the format that, there will be 2 target rows for 1 source record. In target the row needs to be inserted as: ROW1: empno,ename,addr1,phone ROW2: empno,ename,addr2,fax,email And I'm not allowed to normalize transformation. How to achieve?

1 Answers   IBM,


ename,deptcount vamshi,3 kumar,5 krish,8 in o/p i want vamshi record 3 times kumar record 5 times like wise what is the logic.? give the entire logic plz

1 Answers   IBM,


what is surrogate id ?

3 Answers   IBM,


How do you load first and last records into target table?

0 Answers  


Explain sql transformation in script mode examples in informatica

0 Answers   Informatica,


Explain the aggregator transformation?

0 Answers  


What is a pre-defined event and user-defined event?

0 Answers  


What are limitations of joiner transformation?

2 Answers   Exilant, TCS,


Categories