About 369,000 results
Open links in new tab
  1. sql - How to use BOOLEAN type in SELECT statement - Stack Overflow

    Functions called from a SQL query cannot take any BOOLEAN parameters. Neither can built-in SQL functions such as TO_CHAR; to represent BOOLEAN values in output, you must use IF-THEN or CASE constructs to translate BOOLEAN values into some other type, such as 0 or 1, 'Y' or 'N', 'true' or 'false', and so on.

  2. Boolean Expressions in SQL - GeeksforGeeks

    Jan 8, 2025 · Boolean expressions are a core concept in SQL, helping to filter and manipulate data based on conditions. These expressions evaluate to one of three Boolean values: TRUE, FALSE, or UNKNOWN.

  3. How to create a yes/no boolean field in SQL server?

    Nov 22, 2009 · In SQL Server Management Studio of Any Version, Use BIT as Data Type which will provide you with True or False Value options. in case you want to use Only 1 or 0 then you can use this method:

  4. sql - How to create a function which return a boolean depending

    Dec 8, 2016 · I have a table (Id, FK, Date1, Date2) and I need to create a function that will return a boolean value. Generally I want to select records with matching the given FK and check some additional statements.

  5. SQL Boolean Tutorial

    Nov 28, 2022 · SQL Server uses the bit data type that stores 0, 1, and NULL values that can be used instead of the TRUE, FALSE, and NULL values. In this tutorial, we will teach several examples to select and insert values.

  6. Boolean Data Type in SQL - useful.codes

    Jan 19, 2025 · SQL provides several operations and functions that work with Boolean values, enhancing the flexibility of your queries. Understanding these can significantly speed up development and improve code readability.

  7. SQL Boolean Data Types: True False or Null? - tech-champion.com

    In SQL, boolean values are often represented using keywords like ‘TRUE’, ‘FALSE’, or ‘NULL’. Understanding how to work with boolean data in SQL queries is crucial for filtering, sorting, and manipulating data based on specific conditions.

  8. Understanding the Logical Functions IIF and Choose in SQL

    Jan 27, 2025 · In this article, we will explore how to use CHOOSE and IIF in SQL Server 2022, with practical examples and use cases that demonstrate their syntax and real-world …

  9. SQL IIF Function Explained - Online Tutorials Library

    The SQL IIF () function is used to verify whether the condition is true or false. It accepts three parameters boolean_expression, true_value and false_value, and returns one of two values, depending on whether the Boolean expression evaluates to true or false in SQL Server.

  10. SQL Boolean Data Type - Database Star

    Jun 2, 2023 · Is there an SQL boolean data type? Some vendors do, other's don't. Learn how to create an SQL boolean column in this guide.

  11. Some results have been removed
Refresh