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

What is a code page?

0 Answers  


Useful UNIX commands regular/frequently used

1 Answers   Deloitte,


where is the reject loader .

1 Answers  


How you know when to use a static cache and dynamic cache in lookup transformation?

0 Answers  


How do you recover rows from a failed session

1 Answers  


Could any one to tell Fact table Partitioning?

2 Answers  


can we use union transformation in joiner transformation?how?

1 Answers   Dabur, Tech Mahindra,


Define error Threshold?

1 Answers  


Hello Everyone,i have one question on sequence generator.i have two targets and the records comes from the source will place in the targets like 1-10 rec in target1 and 11-20 rec in target2,21-30 rec in target1...etc so any one can help me? plz..Thanq in adv.

7 Answers   Cognizant, Wipro,


Is there any way to read the ms excel datas directly into informatica?

0 Answers  


i have 2 mapings for this 2 mapings i want use only one lookupt/r how?

3 Answers   Wipro,


while creating the scd mappings. we will mention flag value. what exactly the use of defining the FLAG VALUE. Please explaine indetaile

2 Answers   Amdocs,


Categories