Consider the following columns:
EmpID, Status, TermDate
I want a computed column called OkToDisable as a bit value: True if the TermDate is any day before today.
The logic is if DATEDIFF(day, TermDate, GETDATE()) is greater than 0 then the column should be true, otherwise false.
I cant figure out how to do this... SQL keeps complaining that it can't validate the formula.
I was able to create a computed colum from 'DATEDIFF(day, TermDate, GETDATE())' that shows the number of days past the term date, but if I change it to: 'DATEDIFF(day, TermDate, GETDATE()) > 0' it says it can't validate the formula.
Can't you create boolean computed fields?
Thanks.
J