Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Description:
BISP is committed to provide BEST learning material to the beginners and advance learners. In the same series, we have prepared a complete end-to-end ODI Rank Transformation Guide. The document briefs you practical approach to define the rank transformation. The document assists ODI learners to explore the various features. The subsequent release of the case study will cover Aggregate Transformation, Expression Trans, Filter Transformation, Joiner Transformation, Lookup Transformation, Normalized Transformation, Router Transformation, Sequence Generator Transformation, Stored Proc Trans, Sorter Transformation, XML Transformation Join our professional training program to learn from the experts.
Document History
Version 0.1 0.1 Description Change Initial Draft Review 1st Author Upendra Upadhyay Amit Sharma Publish Date 5th Jan 2012 15th Jan 2012
http://learnodi.wordpress.com/
Table of Contents
1)
3 4
2)
a. b.
3)
4)
5)
10
http://learnodi.wordpress.com/
1. Introduction
Rank Transformation:The Rank transformation allows us to select only the top or bottom rank of data. It allows us to select a group of top or bottom values, not just one value. As given in the below example, the business likes to see the Top 6 Profits based on Order date
Rank Transformation
Customer ID 1 1 1 1 1 1 Item No 150 150 150 150 150 150 Order date Jan-12 Feb-12 Mar-12 Apr-12 May-12 Jun-12 Unit Sales 11 3 2 1 1 2 Profit 11.52 3.9 2.48 1.37 1.33 2.87 Rank 1 2 3 4 5 6 Customer ID 1 1 1 1 1 1
Rank Transformation
Item No 150 150 150 150 150 150 Order date May-12 Apr-12 Mar-12 Jun-12 Feb-12 Jan-12 Unit Sales 1 1 2 2 3 11 Profit 11.52 3.9 2.87 2.48 1.37 1.33
http://learnodi.wordpress.com/
Creating Data Server for Source Click on Physical Technology & right click on your technology e.g. oracle and right click on oracle and create new data server then insert information like data server name, DB username and password insert information in JDBC Driver
3.
Fig. 01 Creating Source Data Server 2.2) Specify JDBC Driver & URL
http://learnodi.wordpress.com/
Creating Physical Schema Right click on Data Server & Create New Physical Schema Then scroll down schema and select correct user schema & work schema also where temporary table will store during Execution.
http://learnodi.wordpress.com/
http://learnodi.wordpress.com/
Fig. 04 Creating Target Data Server 2.2) Specify JDBC Driver & URL
Click on Logical Architecture and right click on your technology e.g. oracle & Create New Physical Schema
http://learnodi.wordpress.com/
Fig. 06 Logical Schema for source physical schema 2.5) Creating Logical Schema for Target Physical Schema
http://learnodi.wordpress.com/
Create Data Model for Source & Target Data Model. Input Name of Data Model.
Fig. 08- Source Data Model. 3.2) Creating Target Data Model
http://learnodi.wordpress.com/
http://learnodi.wordpress.com/
Fig. 10 Creating Project Folder for Operation. 1. Click on Transformation. 2. Right Click on Knowledge Module and import knowledge module used for this project.
http://learnodi.wordpress.com/
http://learnodi.wordpress.com/
5. Transformation Operation
5.1) Source Database:-
Fig. 13 Source Database for sou_aggsales table 5.1) Rank Transformation:1. Create New Interface. 2. Name of Interface. 3. Click Mapping tab. 4. Drag & Drop to Source Data base & Target Data store.
http://learnodi.wordpress.com/
Fig.14 Creating Interface for Rank Transformation. 5.3) SQL Query for Mapping from Source to Target S.No. 1. 2. 3. 4. 5. 6. Column Name Customer_id Item_no Profit Unit_Sold Ordre_date Rank Mapping Implementation SOU_AGGSALES.CUSTOMER_ID SOU_AGGSALES.ITEM_NO SOU_AGGSALES.PROFIT SOU_AGGSALES.UNIT_SOLD SOU_AGGSALES.ORDER_DATE RANK() OVER(ORDER BY SOU_AGGSALES.PROFIT)
http://learnodi.wordpress.com/
http://learnodi.wordpress.com/
5.4) Open Operator & verify your interface was executed successfully.