Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Surrogate key and ...
Message
From
14/05/2001 14:54:28
 
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00506974
Message ID:
00506983
Views:
17
>I'm converting an old invoicing application where primary keys are defined by the user when adding new records. For example, key "PACBELL" might be used to add new vendor "Pacific Bell", etc. For most accounting-type application, this approach seems to be the norm for fast data entry.
>
>In my new development I use integer-based surrogate keys but I'm thinking I might have problems with existing users who are accustomed to entering memorized vendor keys in data entry which is easier than either entering in the unfamiliar new surrogate key value or using the separate lookup form.
>
>I could keep the existing key as candidate key and use it for data entry but it's slightly more work and I feel it's really unnecessary to keep both.
>
>Any suggestions?


John,

PKs should be use for system integrity. IMO, there is no reason the user would ever need to see them. You can use something like PACBELL as a candidate key that can be used for lookup.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform