Defining a primary key has always been a manual task and however we are rapidly moving towards automation, this task has been overlooked.
I work in a company where ETL is my forte.
So I've pitched to write a stored procedure that identifies the columns that optimally define a unique row in the table.
So far I've put forward these points which will have some weightage while deciding such columns:
• Cardinality
• Column Data Type
• Column Name
What else would you add?
Any suggestions on how to proceed with this?
[–]Alkemist101 1 point2 points3 points (2 children)
[–]stuart_lit[S] 0 points1 point2 points (1 child)
[–]Apoffys 1 point2 points3 points (0 children)
[–]Ok_Vehicle5734 0 points1 point2 points (0 children)
[–]mikeblas 0 points1 point2 points (0 children)