All,
I have a database that pulls down information from a website. There should be one record per day per customer. Due to some reason a customer may not have a record for a day or multiple days while the other customers have a record.
I need to create a query to show me these "Holes" where a customer should have a record but does not. I want to display any customers who are missing a record and what day(s) is missing. The customer list is dynamic with customers leaving and starting at different times. I have a separate table to indicate which customers are currently active.
Ideas?
I feel that I can do an unmatched item query if I had a table that had each day in the period. Without making a table with just dates in it how can I accomplish this in SQL or query design?
Also, would this approach work to show the customer and the day missing or is a loop of some kind needed to evaluate each customer for missing records?
If this is not the right approach to this please suggest another way.
Thanks,
John Martinez
I have a database that pulls down information from a website. There should be one record per day per customer. Due to some reason a customer may not have a record for a day or multiple days while the other customers have a record.
I need to create a query to show me these "Holes" where a customer should have a record but does not. I want to display any customers who are missing a record and what day(s) is missing. The customer list is dynamic with customers leaving and starting at different times. I have a separate table to indicate which customers are currently active.
Ideas?
I feel that I can do an unmatched item query if I had a table that had each day in the period. Without making a table with just dates in it how can I accomplish this in SQL or query design?
Also, would this approach work to show the customer and the day missing or is a loop of some kind needed to evaluate each customer for missing records?
If this is not the right approach to this please suggest another way.
Thanks,
John Martinez