This may be a dumb question, but here goes:
Is there a standard or best practice that indicates in what order the foreign key columns should be in the table?
I for one, as a PC idea, is the first column in the table, followed by all foreign keys, and then the columns related to this table.
Another way to do this is to have PK as the very first column, then all supporting columns, and then all foreign keys ...
I think it really doesn’t matter, but I would like to get a standard in my organization for this ...
source
share