Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get debtors ?
Message
De
21/09/2000 14:57:11
Cindy Winegarden
Duke University Medical Center
Durham, Caroline du Nord, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00418783
Message ID:
00419255
Vues:
24
CurrentMonth = 9
CurrentYear = 2000

SELECT ClientId ;
FROM Clients ;
INNER JOIN Payments ON Clients.ClientID = Payments.ClientID ;
WHERE Payments.Month == CurrentMonth ;
AND Payments.Year == CurrentYear ;
AND ISNULL(Payments.Amount) ;
OR {Amount due from some other table?} > Payments.Amount




>>>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 ?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform