GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  Data Warehousing  >  ETL
Go To First  |  Previous Question  |  Next Question 
 ETL  |  Question 41 of 64    Print  
Can anyone please explain why and where do we exactly use the lookup tranformations.

thanks in advacne

thanks
nayana

  
Total Answers and Comments: 5 Last Update: May 01, 2008     Asked by: nayana 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
September 21, 2006 07:46:38   #1  
Om Prakash bang        

RE: Can anyone please explain why and where do we exac...

You can use the Lookup transformation to perform many tasks, including:

 

Get a related value. For example, your source includes employee ID, but you want to

include the employee name in your target table to make your summary data easier to read.

 

Perform a calculation. Many normalized tables include values used in a calculation, such as gross sales per invoice or sales tax, but not the calculated value (such as net sales).

 

Update slowly changing dimension tables. You can use a Lookup transformation to

determine whether rows already exist in the target.


 
Is this answer useful? Yes | No
September 26, 2006 06:59:27   #2  
Raghu        

RE: Can anyone please explain why and where do we exac...
Lookup Tranfromation can be used mainly for slowly changing dimensions and for getting related values
 
Is this answer useful? Yes | No
September 27, 2006 07:00:31   #3  
sreedhar        

RE: Can anyone please explain why and where do we exac...

as explained previously u can use it for to get related value,perform calculations and in scds the thing is u can mainly use it...even no need of concerned tables grab into the workspace...

 


 
Is this answer useful? Yes | No
October 05, 2006 10:01:05   #4  
Naresh        

RE: Can anyone please explain why and where do we exac...

  Look Up Transformation is generally used when a fixed data is not present in the mappings we use but is required in the ware house or look up is more importantly used to compare the values...

ex1) in the transactional data we have only name  and custid .... but the complete name (with first and last is required by the biz user..) and there is a separate table (either in source or target data base) that has the first n last names in it.

ex2) u need to compare the prices of the existing goods with its previous prices (referred as type3 ) a look up table containing the olap data could be handy


 
Is this answer useful? Yes | No
May 01, 2008 07:09:03   #5  
jryan999 Member Since: April 2008   Contribution: 15    

RE: Can anyone please explain why and where do we exactly use the lookup tranformations.thanks in advacnethanksnayana

You need Lookup Transformations because Dimension Tables are linked to Fact tables by Surrogate Keys.  

The Surrogate Key is automatically generated within the warehouse, and the ONLY way to find the surrogate key is to look up a Dimension table using the Natural (or Business Key).  

The surrogate key value of the Dimension is then stored against the Fact table to complete the Foreign Key relationship from Fact to Dimension.

Eg.   SALESMAN_DIMENSION

 SALESMAN_ID               Number  not null                  (Surrogate / Primary Key)
SALESMAN_CODE           Varchar2(10)         not null  (Business Key)
SALESMAN_NAME           Varchar2(30)
...Other attributes

Incoming sales records may be recorded against salesman AF293F, and you must perform a lookup using SALESMAN_CODE to find the primary key identifier SALESMAN_ID.  This sequence number is stored against the Fact table, which may identify for example, a single sale completed by this person.

Surrogate keys, keep the warehouse independent from the source systems (which can and will change), and minimise row length on large fact tables.  (eg. 10 million sales records with a 10 character Salesman Code would be use considerably more space than a single 2 byte numeric field).

 


 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape