If mytable
is a member of the main query, then the syntax is:
(
Case When BreachDateTime >= Getdate() Then 'In Date'
Else 'Out Of Date' End
)
otherwise:
(
SELECT Case When BreachDateTime >= Getdate() Then 'In Date'
Else 'Out Of Date' End
FROM mytable
)
If mytable
is a member of the main query, you could replace a sql-expression field with a formula field:
// {@foobar}
IF {mytable.BreachDateTime} > = DataDate Then 'In Date'
Else 'Out Of Date' End