This should be be easy but cannot decide how to build. We have a Customer table and an Invoice table. Want to display Customers who have 3 (or more invoices) in the last 30 days.
Our display should be the Customer record plus all Invoice records which are within the last month. How to do this ? We have to process all the Invoice records for a Customer first to determine if they have 3 or more that fall within the most recent 30 days.
Any help certainly appreciated ! (MSSQL database)
Our display should be the Customer record plus all Invoice records which are within the last month. How to do this ? We have to process all the Invoice records for a Customer first to determine if they have 3 or more that fall within the most recent 30 days.
Any help certainly appreciated ! (MSSQL database)