Hi All,
I want to know are there any benefits to use date as a part of my primary key?
For example in a transaction tables I have many columns and transaction date is one of them and primary key as
This first 8 letters are date in yyyymmdd format and later on some sequence.
Few database designers want this kind of design for there table's primary key. If someone of you ever designed your database tables like this please let me know the precise benefits of this kind of design.
Originally posted by slimdave . . . . if you are absolutely sure that the date value is never going to be modified.
It will be.
After making many mistakes over many years I am convinced that PK's should always be meaningless. Yes, yes, yes, there are rare exceptions - but so rare that making the "wrong" decison isn't worth worrying about.
Bookmarks