How to load last n records of file into target table - informatica



How to load last n records of file into target table - informatica..

Answer / Shailendra Chandra

To load the last 'n' records of a file into a target table, you can follow these steps:n
1. Use a Source Qualifier transformation and sort the data based on the desired column (usually a timestamp or sequence number).n
2. Add a Row Count transformation after the Source Qualifier to count the total number of rows.n
3. Use a Script transformation to subtract 'n' from the row count, and calculate the position of the last record you want to load.n
4. Use a Filter transformation to filter out all records before the calculated position.n
5. Finally, use a Target Qualifier transformation to map the filtered data to the target table columns and execute the mapping.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Informatica Interview Questions

can you use flat file for lookup table?why?

2 Answers   HCL,


how to obtain performance data for individual transformations.

2 Answers  


how many session run unix environment what command using ?

1 Answers   HCL,


How to recover the standalone session?

2 Answers  


Any one can tell me how to explain puss-down optimization ? explain me with example plz?

1 Answers  


Differentiate between sessions and batches?

1 Answers  


what is the flow?

1 Answers  


By using joiner t/r we can join only 2 tables, SO if want join more than 2 flat files ,How can i join?

1 Answers  


Briefly describe lookup transformation?

1 Answers  


if we are extracting 600000 records from a source table so how much volume of records frequently we load in warehouse. (Iknow its depend on client requirement) still i want to know how much volume of records store in warehouse.

2 Answers   IBM,


how do the project develops? pls specify right from the start to end in step by steps.

0 Answers   ITC Infotech,


Hi, As shown below i have repositories under that some folder are there . Between these repositories and folder some thing is there.I want to know what is that? repositories repo1 repo2 repo3 IS_## IS_## IS_## Folder1 Folder2 Folder3 - - - Here i want to what IS_## represents ? Advance Thanks

1 Answers   IBM,


Categories