Link to home
Start Free TrialLog in
Avatar of pointeman
pointemanFlag for United States of America

asked on

SQL ID Column Uses Unique Row Data Vs Sequence Number?

I work at a company IT dept that never used sequectial number ID columns in data tables. They insist on using unique data per row in the ID column because the data (part number) makes more 'human readable' than a secequence number.

Q. What is the best practice?
ASKER CERTIFIED SOLUTION
Avatar of Kent Olsen
Kent Olsen
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of pointeman

ASKER

The other part of their reasoning is making muti-table inserts easier. For instance, writing data in a foreign table and primary table without having to lookup the I'd columns max I'd number. They simply insert the part number in both tables I'd columns. I was not taught this way and it seems quite backwards.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial