Stupid question. I'm setting up a Stored procedure where if @parameterA = '1' then Expiration_Date between @StartDate and @EndDate else Due_Date between @StartDate and @EndDate. Tried casing it out, but it gave me a funky error. I know it's simple, but I can't figure it out.