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  >  Basics

 Print  |  
Question:  what is the need of surrogate key;why primary key not used as surrogate key



November 11, 2006 09:16:19 #4
 Shiva   Member Since: Visitor    Total Comments: N/A 

RE: what is the need of surrogate key;why primary key ...
 

One more reason for using surrogate keys in a Datawarehouse.

1.  As data is extracted from disparate  sources , where  in each source might have primary keys with  data types or formats inherent to the underlying database, if the same primary keys are are used in the DW , there would be   inconsistencies in representation of data which would make quering  of the database a difficult job ,  so  the surrogate keys are implemented to circumvent these kind of situations .

     

 

Back To Question