Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL syntax
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00028278
Message ID:
00028281
Vues:
38
>>What's the exact syntax for a SQL to get all the parent which do not have any children?
>
>You mean like:
>
>Select * from parent;
>where fieldx not in;
>(select fieldx from child)

Yes, what I have is this:

SELECT COULEUR FROM COULEE;
WHERE NOT EXIST (SELECT NOCOULEE FROM INVENTAI WHERE NOCOULEE=COULEE.NOCOULEE);
INTO CURSOR TEMP2

But, I was wondering if there was a simplier/faster way with the new INNER/OUTER/RIGHT/LEFT join.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform