Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Select in large tables
Message
 
 
To
06/07/2001 09:52:31
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00527385
Message ID:
00527437
Views:
23
Krasimir,

Run following select from command window on big tables.
SELECT invoices.*,invdet.*,invdet.td as to1 ;
FROM invdet,invoices ;
WHERE invdet.invoiceid=invoices.invoiceid ;
INTO CURSOR test
The number of records should be the same as in the Invdet table.
If it is that something is wrong with
invoices.invoiceid=THISFORMSET.vlinvoiceid;
condition.
Otherwise you have inconcistency between the invdet and invoices tables.

<
>I remove !deleted() clause -: Don't work
>I rename ".. as TO;" clause to ".. as TO1;" -: Don't work
>I delete and recreate indexes -: Don't work
>
>I test this SELECT comand with two sets of tables : small , and bigger.
>With small /500,26000 recs/ it work, but with large /5000, 50000/ - not.
>--------------
>Krasimir Georgiev.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform