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


Hi All,

I have three question.

1) How to remove the header and footer in a flat file in
informatica?

2)How to load the first and last record of flat file into
the target?

3)I have a Input and Output table.

Input
Name Salaray Month
A 100 Jan
A 200 Feb
A 300 March
B 400 April
B 500 May
B 600 June


Output
Name Salaray Month
A 100 Jan
A 300 Feb
A 600 March
B 400 April
B 900 May
B 1500 June


How to implement and get the ouput as mentioned above.
If Possible kindly provide the SQL query also.

Kindly any one help to implement this concept.

Thanks,
Pradeep

Answers were Sorted based on User's Feedback



Hi All, I have three question. 1) How to remove the header and footer in a flat file in info..

Answer / sridhar k

hi pradeep,

1) to remove header go to session->mapping->source file->set file properties->advanced->no of initial rows escaped(1)

footer-> instr(col,'footer')=0

2)lot of ways u can achieve here giving one solution

SQ->RANKT/R(SELECT TOP NO OF RANKS 1) ->TGT
SQ->RANKT/R(SELECT BOTTOM NO OF RANKS 1)->TGT

Is This Answer Correct ?    8 Yes 3 No

Hi All, I have three question. 1) How to remove the header and footer in a flat file in info..

Answer / babu

Hi Pradeep,

These are columns in
Exp Trans:

name (input & output)
salary (input)
month (input & output)
V_Sal: if(old_name=name,v_Sal+sal,sal) (Variabkle port)
Olad_name=name (Variable port)
o_sal=V_Sal (output port)

connect only name,o_sal,month columns to the target
it gives you what u r expecting. get the

Is This Answer Correct ?    7 Yes 2 No

Hi All, I have three question. 1) How to remove the header and footer in a flat file in info..

Answer / babu

Hi Pradeep,

SQL Query for your requirement
============================
SELECT Name,SUM(salary) OVER(PARTITION BY Name ORDER BY Name,salary) AS Salary, MONTH FROM SAMPLE

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More Informatica Interview Questions

What is the scenario which compels informatica server to reject files?

0 Answers  


What is Session and Batches?

0 Answers   Informatica,


What are the Differences between connected and unconnected lookup?

6 Answers   TCS,


&#61656; Code page compatibly –Where all changes are made to handle the scenario.

1 Answers   DELL,


Hi,tell me the system testing and Integration Testing in the Informatica ? Thank You

2 Answers   TCS,


What if the source is a flat-file? Then how can we remove the duplicates from flat file source?

1 Answers  


What is sequence generator transformation in informatica?

0 Answers  


what is rank and dense rank in informatica with any examples and give sql query for this both ranks

4 Answers  


Can we get 1st record through Informatica(without sequence number).

0 Answers  


what is the size of u r source(like file or table)?

0 Answers   HP,


How to convert IBM Cognos generated XML to a readable XML format for ETL tools

1 Answers  


Please let me know how we can implement the below scenario. In a single mapping,more than 500 sources (legacy,VSAM,relational) will be loading into only one target. Whenever I retreive the data(any record) from target, i need to find the details that the record belongs to which source. Thanks in advance..

5 Answers   iGate,


Categories