how to load first record of first time run,second record to 2nd time n 3rd record from 3rd time to target table

Answers were Sorted based on User's Feedback



how to load first record of first time run,second record to 2nd time n 3rd record from 3rd time to t..

Answer / dilip ingole

BY USING SQL

WITH DATA AS(SELECT NUM,ROWNUM RN ,COUNT(1)OVER() CNT FROM A)
SELECT NUM,RN FROM DATA WHERE RN=1
UNION
SELECT NUM,RN FROM DATA WHERE RN=CNT;

Is This Answer Correct ?    0 Yes 0 No

how to load first record of first time run,second record to 2nd time n 3rd record from 3rd time to t..

Answer / triveni

source->sq->sequencegenerato->expression->filter->target
nextval to expressiontransformation
seq(output) decimal 10 nextval
startval=1,endvalue=14,cycle
mapping variable:$$var varible integer 10 o max
intialvalue=0
filter decimal 10
setvariable( $$seq,($$seq+1))

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More Informatica Interview Questions

Tell me about informatica architecture.

2 Answers   TCS,


How to call shell scripts from informatica?

0 Answers  


Discuss the advantages & Disadvantages of star & snowflake schema?

5 Answers  


What is a dimensional model?

0 Answers  


How IN function works in informatica? Is it similar that of oracle IN function or different? Explain

2 Answers   Mphasis,






How do you handle decimal places while importing a flatfile into informatica?

1 Answers  


Why can't we use few transformations in mapplet ? like xml and target defintions, seq etc ?

2 Answers   IBM,


why we r using presql&postsql in source qualifier?

1 Answers   HP,


Could you explain what is enterprise data warehouse?

0 Answers  


How to do Integration testing in Informatica?

5 Answers   Intelligroup,


How to implement security measures using repository manager?

0 Answers  


Explain what is informatica metadata and where is it stored?

0 Answers  


Categories