ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Data Warehouse  >>  Informatica
 
 


 

 
 Teradata interview questions  Teradata Interview Questions
 Business Objects interview questions  Business Objects Interview Questions
 Cognos interview questions  Cognos Interview Questions
 Informatica interview questions  Informatica Interview Questions
 Crystal Enterprise Suite interview questions  Crystal Enterprise Suite Interview Questions
 Actuate interview questions  Actuate Interview Questions
 Ab Initio interview questions  Ab Initio Interview Questions
 Data Stage interview questions  Data Stage Interview Questions
 SAS interview questions  SAS Interview Questions
 Micro Strategy interview questions  Micro Strategy Interview Questions
 ETL interview questions  ETL Interview Questions
 Data Warehouse General interview questions  Data Warehouse General Interview Questions
Question
hi all, i have 1 flat file having 10 rows. like:- 

id     name     amt
100    a        100
200    b        200
100    n        300
400    p        3000  
100    a        100
600    x        6000

Now i want to load half of this data into one flat file and 
remaining in other flat file.like :-

flat file 1

id     name     amt
100    a        100
200    b        200
100    n        300
----------------------
----------------------
flat file 2

id     name     amt
400    p        3000  
100    a        100
600    x        6000

Plz reply me ASAP.
 Question Submitted By :: Romi
I also faced this Question!!     Rank Answer Posted By  
 
  Re: hi all, i have 1 flat file having 10 rows. like:- id name amt 100 a 100 200 b 200 100 n 300 400 p 3000 100 a 100 600 x 6000 Now i want to load half of this data into one flat file and remaining in other flat file.like :- flat file 1 id name amt 100 a 100 200 b 200 100 n 300 ---------------------- ---------------------- flat file 2 id name amt 400 p 3000 100 a 100 600 x 6000 Plz reply me ASAP.
Answer
# 1
in this logic , frist take one sequene genrator 
transformation ,pass next value to expression 
transformation  and also pass id,name,and amt.
in this transformation and also  create one output port
(temp).it is decimat type and write codition like 
(iif(NEXTVAL %2=0,0,1)) , after take one router 
transformation ,pass these ports (id,name,amt and  
temp) .then create two group ,one is temp=0 and another one 
is temp=1.after pass first group to one flat file ,second 
group to second flat file.
 
Is This Answer Correct ?    1 Yes 0 No
Bala Ramesh
 
  Re: hi all, i have 1 flat file having 10 rows. like:- id name amt 100 a 100 200 b 200 100 n 300 400 p 3000 100 a 100 600 x 6000 Now i want to load half of this data into one flat file and remaining in other flat file.like :- flat file 1 id name amt 100 a 100 200 b 200 100 n 300 ---------------------- ---------------------- flat file 2 id name amt 400 p 3000 100 a 100 600 x 6000 Plz reply me ASAP.
Answer
# 2
when u apply the procedure given by Mr.Ramesh u will get 
alternative records to be stored in the two flatfiles.
Is this what u wanted.
 
Is This Answer Correct ?    0 Yes 0 No
Honey
 
 
 
  Re: hi all, i have 1 flat file having 10 rows. like:- id name amt 100 a 100 200 b 200 100 n 300 400 p 3000 100 a 100 600 x 6000 Now i want to load half of this data into one flat file and remaining in other flat file.like :- flat file 1 id name amt 100 a 100 200 b 200 100 n 300 ---------------------- ---------------------- flat file 2 id name amt 400 p 3000 100 a 100 600 x 6000 Plz reply me ASAP.
Answer
# 3
solution1:- use rank transformation, divide into two 
quartiles and pass them to different targets
 
Is This Answer Correct ?    0 Yes 0 No
Sajjan
 
  Re: hi all, i have 1 flat file having 10 rows. like:- id name amt 100 a 100 200 b 200 100 n 300 400 p 3000 100 a 100 600 x 6000 Now i want to load half of this data into one flat file and remaining in other flat file.like :- flat file 1 id name amt 100 a 100 200 b 200 100 n 300 ---------------------- ---------------------- flat file 2 id name amt 400 p 3000 100 a 100 600 x 6000 Plz reply me ASAP.
Answer
# 4
Thanks to all,

But i want to store first half data in 1 table and another 
half in another table. and with procedure i m getting 
alternative data.
 
Is This Answer Correct ?    0 Yes 0 No
Romi
 
  Re: hi all, i have 1 flat file having 10 rows. like:- id name amt 100 a 100 200 b 200 100 n 300 400 p 3000 100 a 100 600 x 6000 Now i want to load half of this data into one flat file and remaining in other flat file.like :- flat file 1 id name amt 100 a 100 200 b 200 100 n 300 ---------------------- ---------------------- flat file 2 id name amt 400 p 3000 100 a 100 600 x 6000 Plz reply me ASAP.
Answer
# 5
Find the count of the records using `wc -l` Command and 
pass this to mapping varaiable.Now you can route the data 
by dividing 2.I hope this would be helpful to you.
 
Is This Answer Correct ?    0 Yes 0 No
Srinivasarao Dasari
 
  Re: hi all, i have 1 flat file having 10 rows. like:- id name amt 100 a 100 200 b 200 100 n 300 400 p 3000 100 a 100 600 x 6000 Now i want to load half of this data into one flat file and remaining in other flat file.like :- flat file 1 id name amt 100 a 100 200 b 200 100 n 300 ---------------------- ---------------------- flat file 2 id name amt 400 p 3000 100 a 100 600 x 6000 Plz reply me ASAP.
Answer
# 6
Hi,

In the source file if the row count is odd number,then how 
can we check the condition to divide the ff into two halves?

If it is even,we can divide the ff into two halves as per 
the above solutions.

Please give me reply how to implent that

Thanks in Advance
 
Is This Answer Correct ?    0 Yes 0 No
Psnadh
 
  Re: hi all, i have 1 flat file having 10 rows. like:- id name amt 100 a 100 200 b 200 100 n 300 400 p 3000 100 a 100 600 x 6000 Now i want to load half of this data into one flat file and remaining in other flat file.like :- flat file 1 id name amt 100 a 100 200 b 200 100 n 300 ---------------------- ---------------------- flat file 2 id name amt 400 p 3000 100 a 100 600 x 6000 Plz reply me ASAP.
Answer
# 7
send the flat file data into an expression transformation 
and create a new pory say xyz and connect nextval mport on 
seq_gen to this. then connect expression to router take two 
groups. using the nem port created write conditions. 
newport<5 in first group ice versa. i believe this would 
work
 
Is This Answer Correct ?    0 Yes 0 No
Bsgsr
 
  Re: hi all, i have 1 flat file having 10 rows. like:- id name amt 100 a 100 200 b 200 100 n 300 400 p 3000 100 a 100 600 x 6000 Now i want to load half of this data into one flat file and remaining in other flat file.like :- flat file 1 id name amt 100 a 100 200 b 200 100 n 300 ---------------------- ---------------------- flat file 2 id name amt 400 p 3000 100 a 100 600 x 6000 Plz reply me ASAP.
Answer
# 8
From source to expression connect ID, Name and Amt.
Add one sequence generator and connect to expression
now expression TF is like

expression
----------
ID
Name
Amt
Number

pass number port to aggregator TF to get the max value in 
number and pass ID,Name, amt and number from exression to 
router and max value from aggregator to router
now router is having ports
Id
Name
Amt
Number
Max

now route the rows on the basis of
number < max/2 (output group 1)
number > max/2 (output group 2)
 
Is This Answer Correct ?    2 Yes 1 No
Rashmi Garg
 

 
 
 
Other Informatica Interview Questions
 
  Question Asked @ Answers
 
can a port in expression transf be given the name DISTINCT  1
How to get EVEN & ODD numbers separately?  1
Define informatica repository? Wipro1
in which situations do u go for scds ? TCS2
in unconnected lookup , what are the other transformations , that can be used in place of that expression transformation ? Target8
In router source is a boy age 20 I given 3 conditions in router a>20, a<=20, a=20 which one exit first?  1
Ho to handle changing source file counts in a mapping? Deloitte1
How many cubes create from a single model?  1
How do you take care of security using a repository manager  2
What is the "File Repository" and how can we use that in the Informatica ? Please give one example of the Process ? waiting for Reply... Thank you .  3
how can u tune u r informatica mapppings CTS1
Hi all, iam new to informatica, can anyone tell me what is unit testing & how it is done? thank u  2
how many types transformations supported by sortedinput?  3
HOE DO U IMPLIMENT SCHEDULING IN INFORMATICA? Wipro4
What is the difference between view and materialised view?  4
If you want to create indexes after the load process which transformation you choose? HCL2
What is Code Page Compatibility?  1
How many ways you create ports?  1
wt is inline view? when and why we Use ?mail to rayallarv@gmail.com  1
what is meant by lookup caches?  1
 
For more Informatica Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com