Saturday 7 June 2014

1.Design a mapping to get the next row salary for the current row. If there is no next row for the current row, then the next row salary should be displayed as null.
The output should look like as.

 employee_id, salary, next_row_salary
10, 1000, 2000
20, 2000, 3000
30, 3000, 5000
40, 5000, Null







In the first expression transformation, the ports will be

employee_id
salary
V_count=V_count+1
O_count=V_count

Emoticon In the second expression transformation, the ports will be

employee_id
salary
V_count=V_count+1
O_count=V_count-1

Smiley

Join on condition O_count=O_count1.

Make sure to turn on the property ,'sorted input' In joiner transformation.


2.Design a mapping to find the sum of salaries of all employees and this sum should repeat for all the rows.
The output should look like as

employee_id, salary, salary_sum
10, 1000, 11000
20, 2000, 11000
30, 3000, 11000
40, 5000, 11000






In the expression transformation, the ports will be


employee_id

salary
O_dummy=1



In the aggregator transformation, the ports will be


salary

O_dummy
O_sum_salary=SUM(salary)


Join on condition O_dummy=O_dummy1.

Check the sorted input property of joiner.



3.Consider the following employees table as source

department_no, employee_name
20, R
10, A
10, D
20, P
10, B
10, C
20, Q
20, S



Design a mapping to load a target table with the following values from the above source?

department_no, employee_list
10, A
10, A,B
10, A,B,C
10, A,B,C,D
20, A,B,C,D,P
20, A,B,C,D,P,Q
20, A,B,C,D,P,Q,R
20, A,B,C,D,P,Q,R,S






In the expression transformation, the ports will be

department_no
employee_name
V_employee_list = IIF(ISNULL(V_employee_list),employee_name,V_employee_list||','||employee_name)
O_employee_list = V_employee_list


4.Design a mapping to load a target table with the following values from the above source?

department_no, employee_list
10, A
10, A,B
10, A,B,C
10, A,B,C,D
20, P
20, P,Q
20, P,Q,R
20, P,Q,R,S

Add below ports in expression transformation for above mapping.

In the expression transformation, the ports will be

department_no
employee_name
V_curr_deptno=department_no
V_employee_list = IIF(V_curr_deptno! = V_prev_deptno,employee_name,V_employee_list||','||employee_name)
V_prev_deptno=department_no
O_employee_list = V_employee_list



5.Design a mapping to load a target table with the following values from the above source?

department_no, employee_names
10, A,B,C,D
20, P,Q,R,S

Add aggregator tarnsformation after expression transformation and group by department_no.



















Next
This is the most recent post.
Older Post

28 comments:

  1. Informatica Training |Informatica Online Training| Informatica ...
    www.21cssindia.com/courses/informatica-online-training-31.html
    Informatica Training , Informatica Online Training, Informatica Corporate Training, Expert Informatica Training, Expert Informatica online Training, Best ...
    Informatica Data Quality Online Training
    www.21cssindia.com/courses/informatica-idq-online-training-98.html
    Online training informatica data quality, online informatica data quality training, informatica data quality online training from India , informatica data quality course ..

    ReplyDelete
    Replies
    1. This comment has been removed by the author.

      Delete
    2. Hi Pradeep,

      You make learning and reading addictive. All eyes fixed on you. Thank you being such a good and trust worthy guide.

      Delete the contents of the Domain prior to the installation using infasetup.sh DeleteDomain command or you can use the DefineDomain and supply the '-f' option (force) to overwrite the contentsInformatica IDQ training USA.
      If you are using the GUI method to install the domain, then I prefer to run infasetup.sh DeleteDomain command to delete the domain contents prior to starting the installation.

      I am so grateful for your blog. Really looking forward to read more.

      Best Regards,
      Kevin

      Delete
  2. This is the information that I was looking for.. Thanks for the efforts you put to gather such a nice content and posted here.
    Qlikview Training | Informatica Online training

    ReplyDelete
  3. If you are looking for best online informatica training in gurgaon then i'll suggest you 3alearning solutions. it provide best online education.

    ReplyDelete
  4. Hamsini Technologies is Best Informatica Training by TOP Industry Experts in Hyderabad with 100% Job Oriented & Placement Record.

    Free 1st Demo Class,
    Contact us : info@hamsinitechnologies.com
    Informatica Online training

    ReplyDelete

  5. This is nice blog and thanks share with us.we providing Informatica online training
    http://www.tekclasses.com/informatica-online-training-best-informatica-training-in-bangalore-informatica-training/


    http://www.tekclasses.com/informatica-training-in-bangalore-informatica-training/

    ReplyDelete
  6. I really enjoy the blog.Much thanks again. Really Great.
    Very informative article post.Really looking forward to read more.

    http://www.tekclasses.com/informatica-online-training-best-informatica-training-in-bangalore-informatica-training/


    http://www.tekclasses.com/informatica-training-in-bangalore-informatica-training/

    ReplyDelete

  7. hi you have gathered a valuable information on Informatica...., I am looking for content like this and i am much impressed with the information and nice course content, thanks a lot for the Information regarding Informatica

    http://www.tekclasses.com/informatica-online-training-best-informatica-training-in-bangalore-informatica-training/


    http://www.tekclasses.com/informatica-training-in-bangalore-informatica-training/

    ReplyDelete
  8. Great Information admin thanks For Your Blog and Any body wants learn

    http://www.tekclasses.com/informatica-online-training-best-informatica-training-in-bangalore-informatica-training/


    http://www.tekclasses.com/informatica-training-in-bangalore-informatica-training/

    ReplyDelete
  9. Its a very good site to visit.

    http://www.tekclasses.com/

    ReplyDelete
  10. This is great information about Informatica this is useful to now the Informatica and help to the online training class informaticaonlinetraining

    ReplyDelete
  11. Informative article...

    Visit - http://tekclasses.in/

    ReplyDelete
  12. Hello Mate,

    Thanks for the tip, appreciate it. Your article definitely helped me to understand the core concepts.
    I’m most excited about the details your article touch based! I assume it doesn’t come out of the box, it sounds like you are saying we’d need to write in the handlers ourselves.
    Is there
    any other articles you would
    recommend to understand this better?

    I didn't understand what you mean exactly. This is the process I'm doing currently, simulating the error.

    Select and import

    Check the columns, so you can know more data about the table

    Export to XML.

    Excellent tutorials - very easy to understand with all the details. I hope you will continue to provide more such tutorials.
    Regards,

    ReplyDelete
  13. Hi Pradeep,

    I love all the posts, I really enjoyed.
    I would like more information about this, because it is very nice., Thanks for sharing.
    If your logic doesn't change through the mapping execution, then you can use the expression variable.
    In mapping parameters and variables you can define a variable and at the end of the row there is a check box to enable the property "Is Expression Variable". If enabled, the value within the variable is treated as expression. This Expression logic can be used anywhere by simply using the variable name.
    Informatica Data Quality provides clean, high-quality data despite size, data format, platform, or technology. The source data is sent to the Informatica developer tool (IDQ) for cleansing and standardizing the data which ensures the quality of the data.
    But great job man, do keep posted with the new updates.

    Many Thanks,
    Shahin

    ReplyDelete
  14. Hi There,

    Amaze! I have been looking bing for hours because of this and i also in the end think it is in this article! Maybe I recommend you something helps me all the time?

    An easy way to leverage the $ variables in ICS is if Power Center is being used in conjunction with ICS. This solution will be more directed at Power Center developers and not the "citizen integrator".
    1. Go to Power Center designer and create a mapplet.
    2. The mapplet will have a single dummy input value
    3. Add a transformation expression to the mapplet and create outputs for any of the build in Power Center variables.
    4. The outputs of this mapplet are the built in variables you would like to leverage.
    5. Export the mapplet
    6. Import mapplet into ICS
    7. Prior to pushing data into a Target add an expression with all the values being mapped to the target, add the output from the mapplet that you want to use, in this case a $PMWorflowRunId which could map to a target table that requires the use of a batch id.

    But nice Article Mate! Great Information! Keep up the good work!


    Thanks,
    Daniel

    ReplyDelete
  15. Hi There,

    What a brilliant post I have come across and believe me I have been searching out for this similar kind of post for past a week and hardly came across this.

    Informatica server installation on Windows ALWAYS brings its own JDK, and you must never interfere with this JDK.
    So it is correct to say that all references to a system-wide JDK must be removed from PATH and the other affected environment variables, just with the additional caveat that even a system-wide JDK must never be referenced in PATH and so on for the installation and operation of the Informatica platform and PowerCenter.







    Super likes !!! for this amazing post. I thinks everyone should bookmark this.





    Gracias

    Irene Hynes

    ReplyDelete
  16. Hello There,

    Thanks for the tip, appreciate it. Your article definitely helped me to understand the core concepts.
    I’m most excited about the details your article touch based! I assume it doesn’t come out of the box, it sounds like you are saying we’d need to write in the handlers ourselves.
    Are there any other articles you would recommend to understand this better?

    If I use the lookup transformation joining on key columns, should I check the below one in the expression transformation
    CASE WHEN DEP.HIRED_DST BETWEEN HIST.HIRED_DST AND WHEN HIST.HIRED_EDT THEN 'OVERLAP'
    ELSE 'NEW`'
    END FLAG

    Excellent tutorials - very easy to understand with all the details. I hope you will continue to provide more such tutorials.

    Best Regards,
    John

    ReplyDelete
  17. Hi There,

    Muchas Gracias Mi Amigo! You make learning so effortless. Anyone can follow you and I would not mind following you to the moon coz I know you are like my north star.

    I wish to use Oracle DB tables as the source and target destinations in the Informatica Powercenter 10.1.0 Developer Client. The Powercenter server is hosted on a 64-bit Linux system. I can run workflows with flat files as the source and target, but when I try to configure a DB source/target, I get an error saying that the oracle(tm) client and networking components were not found.

    Anyways great write up, your efforts are much appreciated.

    Regards,
    Preethi

    ReplyDelete
  18. Hi There,

    Nice tutorial! Let's keep our fingers crossed that this works. I would like to put this all to rest.

    I am moving data from source to target table. Target table particular column has less length defined than source and because of it, Informatica MDM Training truncation happens and tasks fails. We have defined the recovery strategy on failure to resume from last check point. On failure , we fix the source data , and start the task in recovery but it fails again pointing to the same source record which we fixed it. Not sure why its not taking the updated data from source.

    Anyways great write up, your efforts are much appreciated.

    Many Thanks,
    Preethi.

    ReplyDelete
  19. Hello Mate,


    Amaze! I have been looking bing for hours because of this and i also in the end think it is in this article! Maybe I recommend you something helps me all the time?


    At present we are using PC 10.1.0 on windows 2012. We want to migrate to new environment and upgrade to 10.1.1. It is not a big change on PC side but on the windows environment we are wondering if we can set up environment with a specific configuration to run Informatica better. Apar tfrom the minimum requirements found in the Installation guide I am unable to find any documentation in KB or online. Wondering if anyone have a specific advice on this.
    Our environment Informatica Data quality training USA at present have Powercenter but we want to install Power exchange, Metadata manager after that. Any suggestions are really appreciated.
    But great job man, do keep posted with the new updates.


    Obrigado,

    ReplyDelete
  20. Hi There,

    Thank you. Absolutely perfect! I was SOOOOO excited after seeing the blog and these instructions were absolutely wonderful! You’re a life saver!


    If the pkey_src in stage exists in BO_XREF then it updates the XREF table and based on trust/recency the update to XREF will propagate to BO. Informatica MDM Training USA If the pkey_src doesn't exist in BO_XREF it inserts a row in XREF table and also inserts/creates a new BO with a new rowid_object (unless it is a load by rowid in which case XREF will be created but added to an existing BO record for which rowid is given in mapping and if it would survive to BO or not is dependent on trust/recency)

    I look forward to see your next updates.
    Kind Regards,
    Irene Hynes

    ReplyDelete
  21. Excellent information with unique content and it is very useful to know about the Informatica.Informatica Training in Bangalore

    ReplyDelete
  22. I feel Informatica and softwares like these actually help one look for more and more aspects and find out solutions about these.

    Informatica Read JSON

    ReplyDelete