What is the best way to convert an int or null to boolean value in an SQL query, such that:
No need to use case... when:
select (column_name is not null) as result from table_name;
Returns 1 for all fields not NULL and 0 for all fields that are NULL, which is as close as you can get to booleans in SQL.