Hi Everyone, I was looking to pull a list of Dealers based on when their last sale was. I have the DB set up with multiple tables, the 2 tables that are relevant to this is the Dealer table and the Orders Table. Each order is linked to a specific dealer and dealers can have 0, 1 or many orders. Each order has a date ordered field with it.
I need to be able to pull a list of dealers who have ordered from us within the last year and the last 6 months. Is there a way to do this with a single query or is it going to get more complicated?
I'm having a bit of trouble trying to wrap my head around how to do this.