Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL syntax
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00028278
Message ID:
00028282
Views:
40
>>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform