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

 Print  |  
Question:  How do we maintain Primary key in Fact Table ?

Answer: is there any option other than Surrogate key or concatenated key?


November 11, 2008 03:40:05 #2
 srimanta.mandal   Member Since: November 2008    Total Comments: 1 

RE: How do we maintain Primary key in Fact Table ?
 
In data warehousing we are used surrogate keys by which we can change the value of primary key.
Suppose you have two table emp and dept, and empno is the primary key of dept. table and also it is used in emp table as fk. In this case if we cannot modify the pk.
because it is used as a foreign key in dept table. Thats why we need a extra colums which have no actual meaning.
Here we have to take a extra columns ID as surrogate key in both table which have no meaning.
But it can perform the joins between two tables.
     

 

Back To Question