SyntaxFix
Write A Post
Hire A Developer
Questions
simply do the select:
select
Select * From Times WHERE (StartDate <= @Date) AND (EndDate >= @Date) AND ((@day = 'Monday' AND (Monday = 1)) OR (@day = 'Tuesday' AND (Tuesday = 1)) OR (Wednesday = 1))