cancel
Showing results for 
Search instead for 
Did you mean: 

Query writing - Identifying payment dates - First to Last

Former Member
0 Kudos

Good afternoon All,

I used to use crystal but haven't for some years and I am a bit rusty and require some help.

I have been asked to identify from a large table spanning over 3 years:

The number of new first payments per financial quarter.

The duration of payments per year e.g. 15 People have paid 3 times over the last three years.

The beginning and end of the payment cycle e.g. 20 People started paying in 2013 but stopped in 2014.

Average amount of first payment

The data in the table (before i consider grouping) looks like this:

Contacts NumberPayment DatePayment Amount
617/02/2015  00:00:0010.00
617/03/2015  00:00:0010.00
617/04/2015  00:00:0010.00
626/06/2014  00:00:0010.00
626/03/2014  00:00:005.00
715/01/2014  00:00:0025.00
715/01/2013 00:00:0025.00

I have a feeling that this is very straight for

Accepted Solutions (0)

Answers (1)

Answers (1)

DellSC
Active Contributor
0 Kudos

This is NOT very straight-forward.  In fact, there is no way to determine all of this information by just linking tables together in Crystal.  This would require either a fairly complex Command (SQL Select statement) or a stored procedure - specifically because you need to look at "past" data to determine what the "new" payments are in each quarter.  The logic is fairly complex, and without knowing anything about your database, there's not much we can do to help.

-Dell