Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Index on integer & date fields
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00229164
Message ID:
00229180
Views:
21
>>>Can I create an index based on an integer & a date field? Actually, the integer refers to the primary key (unintelligent) of another table.
>>>
>>>Thanks.
>>
>>Yes, use STR(IntegerField) + DTOS(DateField) as the key for the index
>
>Actually, I have 3 tables. Table 1 parent of table 2 & table 2 parent of table 3. I want to create an index in table 3 that is on the primary key of table 1 plus a date field. Can the table 3 index expression be
>STR(table2.integerField) + DTOS(table3.DateField)

Jane, assuming that you have the table2.integerField in Table3 as a foreign key, your index would be str(tagle3.integerfield+dtos(table3.DateField). If you DON'T have the table2.integerField in Table3, how are you planning to link the child records in Table3 with their parents in Table2?

Barbara
Barbara Paltiel, Paltiel Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform