Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get debtors.
Message
De
27/09/2000 10:15:02
Cindy Winegarden
Duke University Medical Center
Durham, Caroline du Nord, États-Unis
 
 
À
26/09/2000 21:06:58
Marcelo Codino
Mystic & Faith - Sistemas -
Buenos Aires, Argentine
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00421262
Message ID:
00421430
Vues:
14
Marcelo,

SELECT Clients.lname, Clients.fname ;
FROM myDatabase!clients ;
WHERE Clients.id_client NOT IN ;
(SELECT Payments.id_client FROM Payments ;
WHERE Payments.Payment > 0 AND ;
Payments. < month and year are the ones I want > ) ;
ORDER BY Clients.lname


This tells you the clients who are NOT IN the group of clients that meets your selection criteria.





>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 ?
>
>Is it correct ?
>
>SELECT Clients.lname, Clients.fname, Payments.date;
> FROM myDatabase!clients INNER JOIN myDatabase!payments ;
> ON Clients.id_client = Payments.id_client;
> WHERE Clients.id_client NOT IN (Payments.id_client);
> AND (Payments.month_cancelled = ?cMonth;
> AND Payments.year = ?cYear);
> GROUP BY Clients.lname;
> ORDER BY Clients.lname
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform