Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange results of SQL
Message
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00628504
Message ID:
00628604
Views:
27
Hi Sergey,

They were the same in both tables. I and my manager don't see an explanation besides index corruption, so we would reindex this database (by packing each table) at the end of the day.

>>>>>>>Hi Nadya,
>>>>>>>
>>>>>>>Integers do return wrong results in some versions of VFP in few situations if you are using a collate sequence different from MACHINE.
>>>>>>>
>>>>>>>Christof
>>>>>>
>>>>>>Hi Christof,
>>>>>>
>>>>>>How can I check the collate sequence for the indexes in my tables? I thought, they are machine, but now I need to check.
>>>>>>
>>>>>>Thanks in advance.
>>>>>>
>>>>>>Found it: IDXCOLLATE() function
>>>>>
>>>>>list STRUCTURE
>>>>
>>>>They are both MACHINE. Should I re-build them? Do you see any problem in this simple SQL which may cause this strange behavior?
>>>
>>>I don't see anything wrong with your select. Are you sure that data in Jobs and Customer tables is correct? You can certanly try to rebuild indexes.
>>
>>I've checked few "incorrect" jobs through Job Viewer interface and the customer for the job was correct, not the one, which was shown in my report. So, it looks like an indexing problem and we would need to re-build indexes at night.
>
>I'm curious, would Customer.CustID match Jobs.CustID if you add it to the list of the fields returned by the query.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform