Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to retrieve data from a table as it is i entered ord
Message
 
 
To
04/01/2006 08:07:25
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01082997
Message ID:
01083115
Views:
13
My manager asked me the same question. I said, there is nothing I can do about it and we have to choose the order ourselves.

>>Hi Hilamr,
>>
>>Thanks for ur solution,
>>generate the serial nos. that's the only way.
>>But, still i m in confusion that why select statment is not retriving in order.
>>
>>With thanks and regards
>>Abdulla
>
>Quite simply, Visual FoxPro doesn't guarantee any particular order, if you omit an ORDER BY statement; or if you include ORDER BY for one or more fields, but several records have the same values for these fields.
>
>However, I have seen that when selecting data from a single table, the order (as in recno()) is usually respected - but I wouldn't take it for granted; there really is no guarantee that it will always work.
>
>When combining data from the first table with a second table, Visual FoxPro might decide that it is more efficient to sort data according to the order in the first table, or in the second.
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