Goalie3533
Programmer
i need to perform a query using 2 tables that ultimately grabs the last time a customer made a payment for one of their bills(invoices).
the first table(i'll call it tblInvoices) has all of the customer invoice #'s. now, since a customer can make several installments for their invoice, as opposed to one large one, we have a 2nd table(tblPayments) that has a list of each invoice payment made for all of our customers. this table also contains a field that lists the date this payment was received. these 2 tables can be joined by the invoice #.
so what i need to do is select the last payment date(from tblPayments) for each and every invoice in tblInvoices.
how can i go about creating this select statement?
thanks in advance.
-goalie35
the first table(i'll call it tblInvoices) has all of the customer invoice #'s. now, since a customer can make several installments for their invoice, as opposed to one large one, we have a 2nd table(tblPayments) that has a list of each invoice payment made for all of our customers. this table also contains a field that lists the date this payment was received. these 2 tables can be joined by the invoice #.
so what i need to do is select the last payment date(from tblPayments) for each and every invoice in tblInvoices.
how can i go about creating this select statement?
thanks in advance.
-goalie35