Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Selecting records
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01031567
Message ID:
01031585
Vues:
18
And also optimizable (I think, at least for joining)

>Thanks
>Thats even easier!
>>>Hi to all
>>>I have 2 tables in a relation on one field. I would now want to select records in the parent table where there are no corresponding records in the child table.
>>>
>>>Any easy way to do this?
>>>
>>>Thanks in advance.
>>>
>>>Willie
>>
>>
>>SELECT ParentTable.*;
>>       FROM ParentTable;
>>       LEFT JOIN ChildTable ON ParentTable.Id = ChildTable.Id;
>>       WHERE ISNULL(ChildTable.Id);
>>INTO CURSOR crsParentWOChild
>>
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform