Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SELECT WHERE field IN (SELECT field FROM Table)
Message
De
29/03/2001 06:27:07
 
 
À
29/03/2001 05:11:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00489440
Message ID:
00489772
Vues:
10
Kevin

The second query wouldn't optimise the referral table because you are selecting all the records from the referral table where they match records records in sclient tab so all referral records have to be checked . Sclient has no index so cannot be optimised.

You should index the tables on deleted(). Then the following query is optimised if DELETED is set ON because referral will be checked for deleted records
SELECT *;
FROM Referral ;
WHERE referral.Cl_Ref IN (SELECT CL_REF ;
FROM Client WHERE Do_Ref = "035" )

Nick Mason
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform