Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help with Select statement
Message
De
06/06/2001 10:05:47
Walter Meester
HoogkarspelPays-Bas
 
 
À
06/06/2001 08:07:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00515639
Message ID:
00515741
Vues:
15
Hi kevin,

Another approach would be
SELECT * FROM TABLE1 WHERE !SEEK(PrimaryKey,"TABLE2","table2_PK")
or when the table2 does not contain deleted records or the primary key is filtered with FOR !DELETED() you could tune performance by using:
SELECT Table2
nIndexNumber=TAGNO("Table2_pk")
SELECT * FROM TABLE1 WHERE !KEYMATCH(PrimaryKEy,nIndexnumber,"TABLE2")
I hope this helps.

Walter,

>Hi
>
>Table1 is related to Table2.
>
>I want to run a SELECT on Table1 and only obtain records that DO NOT have a related record in Table2.
>
>Can anyone help me on this.
>Thanks
>Kev
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform