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 Posted / kalyan
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 ? | 1 Yes | 7 No |
Post New Answer View All Answers
Explain the etl program with few examples.
Briefly define a session task?
Describe the scenarios where we go for joiner transformation instead of source qualifier transformation?
what are all the deliverables of ETL informatica power center project? what are all updated or created by etl developer as his everyday activities?
What is domain and gateway node?
Can we change Dynamic to Static or Persistent cache? If so what happens?
What is a difference between complete, stop and abort?
Hi friends I want to know about what r the dimensions in the banking porjects and genarally how many tables r in project ?
What do you understand by term role-playing dimension?
What is meant by LDAP users?
Differentiate between a repository server and a powerhouse?
Debugger what are the modules, what are the options you can specify when using debugger, can you change the expression condition dynamically when the debugger is running.
Calculate sum of salaries department wise. Then the sum will be repeat for all columns in each department. Develop a mapping for this.
Describe expression transformation?
What is an expression transformation in informatica?