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  >  DataStage
Go To First  |  Previous Question  |  Next Question 
 DataStage  |  Question 125 of 369    Print  
how can u implement slowly changed dimensions in datastage? explain?

2) can u join flat file and database in datastage?how?

  
Total Answers and Comments: 7 Last Update: May 30, 2006     Asked by: ramaiah 
  
 Sponsored Links



 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
November 28, 2005 01:25:55   #1  
sridhar245 Member Since: November 2005   Contribution: 4    

RE: how can u implement slowly changed dimensions in d...
Yes, we can join a flat file and database in an indirect way. First create a job which can populate the data from database into a Sequential file and name it as Seq_First. Take the flat file which you are having and use a Merge Stage to join these two files. You have various join types in Merge Stage like Pure Inner Join, Left Outer Join, Right Outer Join etc., You can use any one of these which suits your requirements.
 
Is this answer useful? Yes | No
November 28, 2005 01:28:59   #2  
sridhar245 Member Since: November 2005   Contribution: 4    

RE: can u join flat file and database in datastage?how?
Yes, we can do it in an indirect way. First create a job which can populate the data from database into a Sequencial file and name it as Seq_First1. Take the flat file which you are having and use a Merge Stage to join the two files. You have various join types in Merge Stage like Pure Inner Join, Left Outer Join, Right Outer Join etc., You can use any one of these which suits your requirements.
 
Is this answer useful? Yes | No
December 19, 2005 15:06:07   #3  
rama        

RE: how can u implement slowly changed dimensions in d...
SCDs are three typesType 1- Modify the changeType 2- Version the modified changeType 3- Historical versioning of modified change by adding a new column to update the changed data
 
Is this answer useful? Yes | No
February 28, 2006 03:38:27   #4  
Sharanu Patil        

RE: how can u implement slowly changed dimensions in d...

yeah u can implement SCD's in datastage

SCD type1

just use 'insert rows else update rows'

          or

   ' update rows  else  insert rows'  in update action of target

SCD type2

u have use one hash file to look -up the target ,take 3 instance of target ,give diff condns depending on the process,give diff update actions in target ,use system variables like sysdate ,null


 
Is this answer useful? Yes | No
March 09, 2006 21:30:53   #5  
RamaPrasad Batchu        

RE: how can u implement slowly changed dimensions in d...
We can handle SCD in the following waysType I: Just overwrite; Type II: We need versioning and dates; Type III: Add old and new copies of certain important fields. Hybrid Dimensions: Combination of Type II and Type III
 
Is this answer useful? Yes | No
March 22, 2006 07:02:00   #6  
shameerok        

RE: how can u implement slowly changed dimensions in d...

yes you can implement Type1 Type2 or Type 3. Let me try to explain Type 2 with time stamp.

Step :1 time stamp we are creating via shared container. it return system time and one key. For satisfying the lookup condition we are creating a key column by using the column generator.

Step 2: Our source is Data set and Lookup table is oracle OCI stage. by using the change capture stage we will find out the differences. the change capture stage will return a value for chage_code. based on return value we will find out whether this is for insert , Edit,  or update. if it is insert we will modify with current timestamp and the old time stamp will keep as history.


 
Is this answer useful? Yes | No
May 30, 2006 12:47:40   #7  
Krishnarao j        

Hashed Files. what is type17,30...etc
what is type 30,17...
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links



 
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