My source table having some records ,i want load 1st record
and last record into one target?

Answers were Sorted based on User's Feedback



My source table having some records ,i want load 1st record and last record into one target?..

Answer / guest

BY USING FIRST FUNCTION, TO GET THE 1ST RECORD,
TO GET THE LAST RECORD , SIMPLY USE AGGREGATE
TRANSFORAMATION IN THIS DO NOT APPLY GROUP BY FUNCTION BY
DEFALUT IT WILL GENERATE LAST RECORD
OR
USE RANK TRANS
IN =>PROPERTIES NO OF TOP RANKS:1
NO OF BOTTOM RANKS:LAST RECORD

Is This Answer Correct ?    13 Yes 0 No

My source table having some records ,i want load 1st record and last record into one target?..

Answer / chandrasekar

I took the EMP table and we can use the below query in the
SQL override,

select * from emp where rownum=1 union select *
from emp where rowid=(select max(rowid) from
emp);

it will work.

Is This Answer Correct ?    7 Yes 0 No

My source table having some records ,i want load 1st record and last record into one target?..

Answer / kiran

take two rank transformations and take reusable sequence
generator connect the next value to both rank transformations
and in the rank transformations properties for the first one
take top and number of ranks as 1 for the second take bottom
and number of ranks 1 at the last take two instances of tgt
connect the ranktrans to two instances

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Informatica Interview Questions

How to recover sessions in concurrent batches?

1 Answers  


What is the difference between Connected and UnConnected Lookup Transformation.Give me one or two examples please?

7 Answers  


What are session parameters ? How do you set them?

0 Answers  


Is informatica power center designer has 64 bit support?

1 Answers  


How Union Transformation is an Active Trans?

6 Answers  






As union transformation gives UNION ALL output, how you will get the UNION output?

0 Answers   Informatica,


is it reqire primary key and foreign key relation ship to join relational databases?if yes? explain?

3 Answers   IBM,


when will we go for unconnected lookup transformation in Informatica?

6 Answers   CTS, IBM,


What is a mapplet/worklet in informatica?

0 Answers  


I have source data like this col1 col2 col3 5 3 8 6 2 9 7 1 10 and i want to get target as col1 col2 col3 5 1 8 6 2 9 7 3 10 which transformation i have to use and how?

3 Answers  


I have the source like col1 col2 a l b p a m a n b q x y How to get the target data like below col1 col2 a l,m,n b p,q x y

2 Answers   DELL,


what is the location of parameter file in informatica?

1 Answers   TCS,


Categories