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

i have oracle table A and target B. i don't know how many records. i want get get last record in table A as first record in target table B. write a sql query?

7 Answers   IBM, TCS,


What is update strategy transform?

0 Answers  


In CSV flat file date are in the following format. dd/mm/yyyy (05/01/2005)and d/m/yyyy (5/1/2005) and dd/m/yyyy (05/1/2005) and d/mm/yyyy (5/01/2005). It should be load to target in a unique format. How will you implement this?

1 Answers  


What are steps to follow Informatica migration from 7x to 8x? Pls Explain...

1 Answers   CTS, TCS,


what is hash table in informatica?

1 Answers   Zensar,






how do u get the first record from 50,000 records ?

10 Answers   TCS, UBS,


How informatica process data means how informatica works?

2 Answers   TCS,


when will we go for unconnected lookup transformation in Informatica?

6 Answers   CTS, IBM,


How the informatica server sorts the string values in Rank transformation?

1 Answers   Informatica,


What are mapping parametres and variables in informatica?

6 Answers   TCS,


What is intricate mapping?

0 Answers  


In aggregator if u enable sorted input what will be the output and disable sorted wt is output

6 Answers  


Categories