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   SiteMap shows list of All Categories in this site.
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
How to create a mapping ?

id  date
101 2/4/2008
101 4/4/2008
102 6/4/2008
102 4/4/2008
103 4/4/2008
104 8/4/2008

O/P - shud have only one id with the min(date)
How to create a mapping for this
 Question Submitted By :: Achoudhr
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How to create a mapping ? id date 101 2/4/2008 101 4/4/2008 102 6/4/2008 102 4/4/2008 103 4/4/2008 104 8/4/2008 O/P - shud have only one id with the min(date) How to create a mapping for this
Answer
# 1
I think its Simple, with Agg Transformation,
First  Group by ID,
Then go  with min (date)  in same Agg Transformation.

I think its Help you,,,,,,
Any ???  r Corrections,,,Let me know  
srinu.srinuvas@gmail.com
 
Is This Answer Correct ?    6 Yes 1 No
Srinu
 
  Re: How to create a mapping ? id date 101 2/4/2008 101 4/4/2008 102 6/4/2008 102 4/4/2008 103 4/4/2008 104 8/4/2008 O/P - shud have only one id with the min(date) How to create a mapping for this
Answer
# 2
Hi Achoudhr,

here u go,

sq--->agg----->target

In agg dont use group by on any port and take output 
columns for both id & date ports, use 'min' function in 
outpput expression and connect output ports to desired 
target columns.you will get only one output row that is 101 
2/4/2008.

note: if u use group by mapping outputs 3 rows.
 
Is This Answer Correct ?    3 Yes 1 No
Dl
 
 
 
  Re: How to create a mapping ? id date 101 2/4/2008 101 4/4/2008 102 6/4/2008 102 4/4/2008 103 4/4/2008 104 8/4/2008 O/P - shud have only one id with the min(date) How to create a mapping for this
Answer
# 3
I guess the below logic will solve this question.. 

Sq -> Expression T/R -> Aggr t/r -> Target

Create a constant port in Expression t/r and then pass the 3
fields id, date & const port to the aggregate t/r... Create
a new port calculating mindate.. Now do a group by on the
Const field ; connect id & min Date fields to the Target...

FYI, If u don't apply group by on any column of the table ;
can not calculate the Aggr values...

Please correct me if I am wrong...
 
Is This Answer Correct ?    0 Yes 1 No
Kalyan
 
  Re: How to create a mapping ? id date 101 2/4/2008 101 4/4/2008 102 6/4/2008 102 4/4/2008 103 4/4/2008 104 8/4/2008 O/P - shud have only one id with the min(date) How to create a mapping for this
Answer
# 4
I think you can get this by SQ Override query itself.

SQ->Exp->Target

SQ Override Query:

SELECT ID,MIN(DATE) FROM TABLENAME GROUP BY ID.

Let me know if i am wrong.
 
Is This Answer Correct ?    1 Yes 0 No
Bidhar
 

 
 
 
Other Informatica Interview Questions
 
  Question Asked @ Answers
 
HOw can we load the normalised data ( Vertical data) to (Horizontal data)with out using decode in the expression transformation and the aggregator transformation. But, what exactly I want is .. If we have million of records,it is not possible using decode and search for that Particular Id to pivot into Horizontal data... Can any one of guys please help me in this regard..... TCS2
What is the difference between Bitmap and Btree index?  1
What is Performance tuning in Informatica? GE1
Why we use stored procedure transformation?  2
What is hash partition?  1
i have f;latfile source. i have two targets t1,t2. i want to load the odd no.of records into t1 and even no.of recordds into t2. what is the procedure and whar t/r's are involved and what is the mapping flow Wipro4
If i done any modifications for my table in back end does it reflect in informatca warehouse or maping desginer or source analyzer?  2
Why do we use DSS database for OLAP tools?  1
in which situations do u go for scds ? TCS2
Transformer is a __________ stage option1:Passive 2.Active 3.Dynamic 4.Static Accenture1
In which circumstances that informatica server creates Reject files?  2
How to enter same record twice in the target table,explain?  5
how to calculate the optimum cache size in aggregator transformation?  1
ONE FLAT FILE IS THERE WHICH IS COMMA DALAMETED . HOW TO CHANGE THAT COMMA DELEMITER TO ANY OTHER AT THE TIME OF RUNNING ? HP2
what is data driven? Wipro4
Hi all, iam new to informatica, can anyone tell me what is unit testing & how it is done? thank u  2
sir presently i am persuing my m.tech recently i got job in tcs as fresher presently iam doing my 9 months project related to informatica can any one guide me how to create fact tables what type of schemas must be used and so on if so give ur mail ids so that i can contct through it  1
What is difference between stored procedure transformation and external procedure transformation?  1
What is the Hierarchy of DWH?  1
How to create a mapping ? id date 101 2/4/2008 101 4/4/2008 102 6/4/2008 102 4/4/2008 103 4/4/2008 104 8/4/2008 O/P - shud have only one id with the min(date) How to create a mapping for this Deloitte4
 
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