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...

How to load last 10 records of flat file in to the target?

Answer Posted / kalpesh radadia

SQ---- Exp ---- Sorter----Exp --- Filter---Sorter ---
Target.
Connect the source qualifier transfromation to an
expression transformation. In the expression
transformation, create the below ports:
v_cnt (variable port) = v_cnt+1
o_cnt (output_port) = v_cnt
Connect the expression transformation to the sorter
transformation. Sort the rows on the o_cnt port in
descending order.
Now connect the sorter transformation to the expression
transformation (do not connect o_cnt port).
Again Connect to expression transformation create the ports
mentioned above
v_cnt (variable port) = v_cnt+1 o_cnt
(output_port) = v_cnt
Connect to a filter transformation and specify the filter
condition as o_cnt<=N
Connect the expression transformation to the sorter
transformation. Sort the rows on the o_cnt port in
descending order.
Connec to the target

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is union transformation?

961


Explain lookup transformation in informatica

1068


What is the difference between Active and Passive transformation?

1148


Write the prerequisite tasks to achieve the session partition?

1146


What is an active transformation?

1094


Explain is there any way to read the ms excel datas directly into informatica? Like is there any possibilities to take excel file as target?

1103


what is unit testing?tell me proceedure

2216


which one is better performance wise joiner or look up

1083


How union transformation is used?

1001


According to his methodology what all you need before you build a datawarehouse

1752


how to load dimension table and fact table. plz tell me the steps.

2090


How would you copy the content of one repository to another repository?

1011


Where are the source flat files kept before running the session?

1067


Hi friends I want to know about what r the dimensions in the banking porjects and genarally how many tables r in project ?

1897


If the source has duplicate records as id and name columns, values: 1 a, 1 b, 1 c, 2 a, 2 b, the target should be loaded as 1 a+b+c or 1 a||b||c, what transformations should be used for this?

10154