Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Defaulter List Query

Author  Topic 

ravininave
Posting Yak Master

111 Posts

Posted - 2010-02-19 : 04:33:54
Hi All,
In my application user enters a data of Customer who has to pay their amount in installments for that I've created two tables 1] InsMast - Holds Information about Installments which has to be received. Generates all Ins from Customer Entry. 2]Receipts - Whenever Customer pays amount goes to receipts.

Table Structure
INSMAST : AppCode,InsDate,InsAmt
RECEIPTS : AppCode,vDate,vAmount

Now I've to find those Customer Who hadn't paid since from last 2 or 3 months. How Could I?

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-02-19 : 06:12:37
so does INSMAST have details of each installments to be payed by each customers? Does InsDate represent last date of payment?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

ravininave
Posting Yak Master

111 Posts

Posted - 2010-02-21 : 09:07:15
Yes, INSMAST have details of each installment all the pay dates of each customer.

quote:
Originally posted by visakh16

so does INSMAST have details of each installments to be payed by each customers? Does InsDate represent last date of payment?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/



Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-02-21 : 09:16:17
so we need to compare receipts against INSMAST and check if date is within 2 or 3 months period?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-02-21 : 09:23:02
see how to post proper data to get quick solution
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -