Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Querying last level un self-referenced table
Message
De
21/09/2001 11:49:15
 
 
À
21/09/2001 11:34:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00559275
Message ID:
00559301
Vues:
16
This message has been marked as the solution to the initial question of the thread.
>Hi Crescencio
>
>A simplified structure in order to sample what I need looks like this :
>
>(iid i, ;
>iidParent i,
>cAccount c(40))
>
>Where iidParent contains a reference to iID (the parent), this defines the parent-child relationship.
>
>Right now I'm trying a sets difference by using the NOT IN clause of the sql-statement.
>
>
>Oscar
>
-snip-
Oscar,

Would a query that searches for those iid's who aren't nobody's iidparents work? For example:
Select * from selfrefer ;
   Where iid not in (Select Distinct iidparent From selfrefer)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform