I have data that looks like this:
Name MediaID StartDate EndDate Mike 00001 02/01/18 10/31/18 Mike 00001 05/01/18 09/30/18 Lisa 00001 05/01/17 02/28/18 Lisa 00002 01/01/19 05/31/19 Lisa 00003 02/01/16 10/31/16
I get questions that I need to answer like this (I do not know if these answers are correct, this is just an example, but even mocking this up just emphasized why I need a solution):
Question 1:
I need data for Mike from 1/1/18-12/31/19
Answer 1:
I need to get data for 1/1/18-1/31/18 and 11/1/18-12/31/19
Question 2:
I need data for Lisa for 1/1/17 - present
Answer 2:
I need to get data for 1/1/17-4/31/17 and 3/1/18-12/31/18 and 6/1/19-present
I am pursuing a solution in Access also. I am pretty much looking for any shortcuts to get this done, I have no idea where to start.
EDIT: all of the dates will be within the last ten years
EDIT2: added sample data
Bookmarks