Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get debtors.
Message
From
26/09/2000 21:06:58
Marcelo Codino
Mystic & Faith - Sistemas -
Buenos Aires, Argentina
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
How to get debtors.
Miscellaneous
Thread ID:
00421262
Message ID:
00421262
Views:
43
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
Thanks in advance
Next
Reply
Map
View

Click here to load this message in the networking platform