Using description as primary key

F

Frank Situmorang

Hello,

Is it material description enough as a primary key?, we are not in the stage
of using catalog as a material coding, what would be the constraints if we
use description as a primary key, than we will make an automatic pop up to
show the lowest material price from each supplier.

Thanks in advance,

Frank
 
S

Stefan Hoffmann

hi Frank,

Frank said:
Is it material description enough as a primary key?
In database theory this can be, but your material description must be a
candidate key. Thus means, is it sufficent to identify a single data
row? Does it not depend on any other data?

Despite that, it has some disadvantages, as scuba already pointed out.

Using a surrogat key, e.g. an autoincrement, will save you unnecessary
updates, even if they can be maintained be the referential integrity
settings.

Also some operations will be slower, when using a text key.

mfG
--> stefan <--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top