Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get debtors ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00418783
Message ID:
00418954
Vues:
23
OOps! That's better. Qualified which ClientID to return.
>John's way will work great. Another way to accomplish this using joins is:
>
>
>CurrentMonth = 9
>CurrentYear = 2000
>
>SELECT Clients.clientid ;
>FROM clients    ;
>INNER JOIN Payments ON Clients.ClientID = Payments.ClientID ;
>WHERE Payments.Month == CurrentMonth AND Payments.Year == CurrentYear         ;
>
>
>>Hi all,
>>
>>I have two tables, both are relationed,(one-to-many).One contains clients and the other payments.Now, how can I search clients that haven´t yet paid in the current month and in the current year the monthly fee ?
Marty Smith, CSQE
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform