Hi All,
I have a simple table in a database that looks like this:
Client # Debtor # Extract Month
107 2567 01/2015
107 2567 02/2015
107 2567 03/2015
107 2567 04/2015
107 2575 01/2015
107 2575 02/2015
107 2575 03/2015
107 2575 04/2015
110 2125 01/2015
110 2125 02/2015
110 2125 03/2015
110 2130 01/2015
I need a query that will count the number of different debtor numbers under a given month for each client number
It should look like the table below. Ideally without the requirement for a sub-query.
Client # Debtor # Extract Month
107 2 01/2015
107 2 02/2015
107 2 03/2015
107 2 04/2015
110 2 01/2015
110 1 02/2015
110 1 03/2015
Any help would be much appreciated.
Thanks
Michael