![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am perplexed by the order of the table columns. |
|
Any comments on what advantage there is in ordering a table structure from smallest to largest and using integers as the field type in lieu of alphanumeric, would be appreciated. |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
I have a client with a table structure in the column order shown below: Unit_ID Process_Cell_ID Area_ID Site_ID Enterprise_ID These are all keyed fields and integer type. I am perplexed by the order of the table columns. I can't think of any advantage to ordering the table columns as shown. It seems to me to be better to show the reverse. I have always structured tables with the largest to smallest as the key fields. Any comments on what advantage there is in ordering a table structure from smallest to largest and using integers as the field type in lieu of alphanumeric, would be appreciated. Thanks Dan |
#5
| |||
| |||
|
#6
| |||
| |||
|
|
Thanks for you comments |
#7
| |||
| |||
|
#8
| |||
| |||
|
|
Thanks for you comments The structure looks VERY strange to me but without knowing what the app is doing it's difficult to give advice. As to using the autoincrement function of Paradox - search this NG and you will loads of posts, most of them recommend against using it. Anders |
#9
| |||
| |||
|
|
What a lot of people do is to have a single field PK based on a next number scheme (usually not a Paradox autoincrement field, but an actual next number generator) with indexes on the other fields, which are used as foreign keys. With Paradox, this results in a much smaller PK and secondary indexes, and possibly better performance as a result. -- Larry DiGiovanni Digico, Inc. IT Consulting and Staffing Solutions www.digicoinc.com Check out www.thedbcommunity.com for Paradox resources. |
#10
| |||
| |||
|
|
It seems to me that if I use numbers as PK values this would limit my ability to export the data to other users that have the same software and wish to merge the data together. |
![]() |
| Thread Tools | |
| Display Modes | |
| |