database - Surrogate vs. natural/business keys -


here go again, old argument still arises...

would better have business key primary key, or rather have surrogate id (i.e. sql server identity) unique constraint on business key field?

please, provide examples or proof support theory.

both. have cake , eat it.

remember there nothing special primary key, except labelled such. nothing more not null unique constraint, , table can have more one.

if use surrogate key, still want business key ensure uniqueness according business rules.


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -