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:
00028281
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.
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform