If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

SQL: Count payments for a given period

Hi,
I am trying to solve a problem..
I got two tabels, one customer table where customerStartDate is stored.
And one payment table where several paymentDates can be stored.

The customers have a customerStartDate that is not equal to the first paymentDate.
The periode between the customerStartDate and the paymentDates varies from customer to customer.
I would like to be able to count the numbers of first payments for a given month/periode.