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

 Print  |  
Question:  purpose of using the key and difference between Surrogate keys and natural key



June 06, 2006 12:21:01 #1
 Hanu   Member Since: Visitor    Total Comments: N/A 

RE: purpose of using the key and difference between Su...
 

HI,

 We use keys to provide relationships between the entities(Tables). By using primary and foreign key relationship, we can maintain integrity of the data.

The natural key is the one coming from the OLTP system.

The surrogate key is the artificial key which we are going to create in the target DW. We can use thease surrogate keys insted of using natural key. In the SCD2 scenarions surrogate keys play a major role

Cheers,

Hanu.

     

 

Back To Question