Is it possible to express 1 or 0 as a bit when used as a field value in a select statement?
e.g.
In this case statement (which is part of a select statement)
Slightly more condensed than gbn's:
Assuming CourseId is non-zero
CourseId
CAST (COALESCE(FC.CourseId, 0) AS Bit)
COALESCE is like an ISNULL(), but returns the first non-Null.
COALESCE
ISNULL()
A Non-Zero CourseId will get type-cast to a 1, while a null CourseId will cause COALESCE to return the next value, 0