Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Relationships between tables.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00182313
Message ID:
00182322
Vues:
12
>>Hi all,
>>
>>I have two tables, both are relationed.One of this have Clients and the other Pays of each client.The relation is (One-To-Many).The question is how can I know about those clients that have not pay.In other words all those records that have not any movement in the Client´s table.I want to extract those records in a query list.
>>
>>TIA
>
>If you need just a list you can do SQL SELECT like:
>
>SELECT * FROM clients ;
>WHERE clients.client_code NOT IN (SELECT client.code from pays)

Sorry, I meant
SELECT * FROM clients ;
WHERE clients.client_code NOT IN (SELECT client_code from pays)
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform