What is the best way to convert an int or null to boolean value in an SQL query?

Posted by Thomas Bratt on Stack Overflow See other posts from Stack Overflow or by Thomas Bratt
Published on 2008-10-07T11:02:21Z Indexed on 2010/03/08 2:13 UTC
Read the original article Hit count: 366

Filed under:
|
|
|
|

What is the best way to convert an int or null to boolean value in an SQL query, such that:

  • Any non-null value is TRUE in the results
  • Any null value is FALSE in the results

© Stack Overflow or respective owner

Related posts about sql

Related posts about boolean