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:
00028282
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.

Good question, I'll bet there is -- but I'm still using old-fashioned method like you...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform