Sorry if this is simple, but I’m struggling. I have a table called services that contains service data (million+ records) and it has the following columns: ClientID, Service Date, and Service. I’ve been given a second table that contains the same ClientID and has two additional fields: Start Date and End Date. The table has 500+ records and the Start Date and End Date is different for each ClientID. What I need to do is only select records from the services table that have the same ClientID and falls between each individual client’s Start Date and End Date (the client may have services that are before and after the date range, and those should not be selected).
Any suggestions would be helpful
Any suggestions would be helpful