Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
For advocates of surrogate foreign keys
Message
From
27/11/1998 12:37:21
 
 
To
27/11/1998 11:57:23
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00161970
Message ID:
00161972
Views:
21
You could create a view based on the 2 tables and order it by the vendor id.

HTH

>For those that advocate using surrogate foreign keys (non-business key) I have a question. How do you best handle sorting on a foreign key? For example, I have an Ap invoice table with a foreign key to my vendor table (unique integer). I don't have any way to SET ORDER to my vendor field to easily sort my invoices by vendor id. I could bag the integer foreign key in the Invoice table and replace it with the vendor id itself or I could include both the integer key value and the actual vendor id in my invoice table. I like using the integer for speed, ease of use, etc. and although it violates normalization, it may be helpful to have both for sorting. Any suggestions?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform