(isnull({XXX.End Date})
or
{XXX.End Date} >= {?Start Date}
) and
({XXX.Start Date} < {?End Date}) and
(
{?service} = "ALL"
or
{?service} = {XXX.Descriptor}
) and
{XXX.Descriptor} <> "" and
{XXX.Descriptor} <> "" and
(
{?status} = "ALL"
or
{?status} = {XXX.Status}
) and
{XXX.Reason} <> ""
For security reasons i have masked table names with XXX