Wednesday, August 12, 2026

202 ) what is use of Surrogate key is a

202 ) what is use of  Surrogate key is a

unique sequential auto generated and
auto incremented  number key column 

Generated by the database operation 
 
 
Normally used in a History table ( dimensions ) 
 when the PK is duplicated to allow changes  


==============================================
When to use a surrogate key
iHandling Slowly Changing Dimensions (SCD Type 2): In data warehouses, if a customer moves or changes their last name, you often want to keep historical sales tied to their old profile while creating a new record for their new profile. A surrogate key allows you to have multiple rows for the same natural business entity (e.

No comments:

Post a Comment

239 ) Metadata Management

Metadata Management and Modern Data Governance Tools Metadata management forms the backbone of data governance, data lineage, and data quali...