SyntaxFix
Write A Post
Hire A Developer
Questions
If you want the column is BIT and NOT NULL, you should put ISNULL before the CAST.
ISNULL( CAST ( CASE WHEN FC.CourseId IS NOT NULL THEN 1 ELSE 0 END AS BIT) ,0) AS IsCoursedBased