Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
select .. FROM
where (Table.Type = 'imp' and Table.ArrDate >=@DateStart and Table.ArrDate < @DateEnd) OR (Table.Type = 'exp' and Table.DepDate >=@DateStart and Table.DepDate < @DateEnd)
select * from
(select .., case when Type = 'imp' then ArrDate
when Type = 'exp' then DepDate end) as DepArr FROM .. )
Derived where Derived.DepArr >=@DateStart and DepArr <@DateEnd