What is a surrogate key?Why we use it in a mapping?Pl give
an example.
Answers were Sorted based on User's Feedback
Answer / saradhi
surrogate key is used to avoid the critical column.critical
column means the column which makes the analysation or data
wrong for example assume one customer table
cust_id(p.k) cust_name amount loc
1 jones 1000 hyd
he purchase the product in hyd by 1000/- if he again
purchase by 2000/- in pune not in hyd.then we have to
create another record in that table with same cust_id but
here cust_id is having primary key so we are unable to
create a new record for suppose if u update the record u
got the wrong information as
1 jones 3000 pune
so eliminating this we are maintian the another column like
cust_no as surrogate key (unique value)and removes p.k in
cust_id.surrogate key is like an index.
Is This Answer Correct ? | 12 Yes | 1 No |
surrogate key is a System generated Key ( Artificial
key ),Every join between dimension tables and fact tables
in a data warehouse environment should be based on
surrogate keys, not natural keys.
There are still more reasons to use surrogate keys. One of
the most important is the need to encode uncertain
knowledge. You may need to supply a customer key to
represent a transaction, but perhaps you donýt know for
certain who the customer is. This would be a common
occurrence in a retail situation where cash transactions
are anonymous, like most grocery stores.
What is the customer key for the anonymous customer?
Perhaps you have introduced a special key that stands for
this anonymous customer. This is politely referred
to as a "hack."
Is This Answer Correct ? | 6 Yes | 1 No |
Answer / venkadesh
IT IS UNIQUE KEY AND ITS USED FOR COMPARING THE EMPLOYEE DETAILS
Is This Answer Correct ? | 0 Yes | 5 No |
How will you update the first four rows and insert next four rows in a mapping?
What is dynamic cache?
How/where can i install Informatica software with oracle or teradata as database
Explain how many types of dimensions are available in informatica?
What is a node in Informatica?
Explain about the concept of mapping parameters and variables ?
What is flashback table ? Advance thanks
i have a wf i want to run this very day 3 time every 3 hours how can you scheduled that?
Suppose we have two source qualifier transformations sq1 and sq2 connected to target tables tgt1 and tgt2 respectively. How do you ensure tgt2 is loaded after tgt1?
What is Cognos script editor?
Source --------- eno , ename, sal 001,ank,1000 002,behe,2000 003,raj,2500 Target ------- header :DDMMYYYY24MMSS timestamp body: 001,ank,1000 002,behe,2000 003,raj,2500 footer: count(eno),sum(sal) how to implement the same in a FF tgt?
what is unit testing?tell me proceedure