tblDate
FooID[int] | StartDate[datetime] | EndDate[datetime]
tblException
FooID[int] | ExceptionDate[datetime]
Looking for one query that completes these 3 things
How do I select
i] all dates between StartDate and EndDate from tblDate for a given FooID
ii] where that date is not in tblException for the FooID
iii] and that date is a Friday/Saturday/Sunday
FooID[int] | StartDate[datetime] | EndDate[datetime]
tblException
FooID[int] | ExceptionDate[datetime]
Looking for one query that completes these 3 things
How do I select
i] all dates between StartDate and EndDate from tblDate for a given FooID
ii] where that date is not in tblException for the FooID
iii] and that date is a Friday/Saturday/Sunday