Hello,
I have a table for invoices (one record per invoice). Each record contains a location ID and a received date.
Let's call the table "tbA", the location ID "loc" and the date "rdate". Now I would like to make a query that display one line for each location and in each column shows the count of the number of invoices which are from within a certain date range (age). I'm going to need maybe 5-6 different date ranges, but to simplify things here, let's say two different date ranges in relation to today's date (0-5 days old and 6-10 days old let's say). Could anyone please advise me on how to create such a query? Or perhaps I need many queries? I really can't think of a solution for this problem so any help is appreciated.
Thanks
I have a table for invoices (one record per invoice). Each record contains a location ID and a received date.
Let's call the table "tbA", the location ID "loc" and the date "rdate". Now I would like to make a query that display one line for each location and in each column shows the count of the number of invoices which are from within a certain date range (age). I'm going to need maybe 5-6 different date ranges, but to simplify things here, let's say two different date ranges in relation to today's date (0-5 days old and 6-10 days old let's say). Could anyone please advise me on how to create such a query? Or perhaps I need many queries? I really can't think of a solution for this problem so any help is appreciated.
Thanks