I have three tables Invoice, Account and Visits
Each has a primary key in common (AccountID). I need to draw data for accounts that have not had a visit in the month of july and had a valid account to allow a visit in that month (drawn from Invoice – scheduletype and Account – startdate)
I have tried using several joins but am not able to get the data out as I need it and am fairly new to SQL. Would anyone be able to help me out with some pointers please?
Guessing with the Visit date,