What is the best way to convert an int or null to boolean value in an SQL query, such that:
Usually when use 1, it means is true and else in other case.
So:
SELECT IsDefault = CASE WHEN IsDefault = 1 THEN 'true' ELSE 'false' END FROM table