About 989,000 results
Open links in new tab
  1. Is there a quick way to check if ANY column is NULL?

    Mar 14, 2012 · If you mean quicker for SQL Server to execute, one thing you could do is write a trigger than updates a bit column that specifies if the entire row (other than the bit and primary key) are …

  2. How do I check if a Sql server string is null or empty

    SELECT IIF(field IS NULL, 1, 0) AS IsNull The same way you can check if field is empty.

  3. Check if a column's value is null in SQL Server - Stack Overflow

    Jul 24, 2015 · Can't believe I am stuck with this but how can I check that value I am returning is null in select statement IF EXISTS(SELECT TU.Tagged FROM TopicUser TU WHERE TU.TopicId = …

  4. How to compare values which may both be null in T-SQL

    When this approach was used as a partial join predicate for a single field it performed much slower than the equivalent " (a=b or (a is null and b is null))". Fields a and b happened to be sql_variants, …

  5. sql - How to check for null/empty/whitespace values with a single test ...

    Testing on SQL Server 2017, this does work for multiple white spaces without TRIM. It doesn't make sense to me, because according the documentation NULLIF should return NULL only if the two …

  6. SQL is null and = null - Stack Overflow

    Mar 6, 2012 · The reasoning is that a null means "unknown", so the result of any comparison to a null is also "unknown". So you'll get no hit on rows by coding where my_column = null. SQL provides the …

  7. sql - Best way to check for "empty or null value" - Stack Overflow

    What is best way to check if value is null or empty string in Postgres sql statements? Value can be long expression so it is preferable that it is written only once in check. Currently I'm using:

  8. How to check for Is not Null And Is not Empty string in SQL server ...

    Nov 13, 2016 · How can we check in a SQL Server WHERE condition whether the column is not null and not the empty string ('')?

  9. sql - check for null date in CASE statement, where have I gone wrong ...

    Mar 16, 2010 · My source table looks like this Id StartDate 1 (null) 2 12/12/2009 3 10/10/2009 I want to create a select statement, that selects the above, but also has an additional column to

  10. sql - Not equal <> != operator on NULL - Stack Overflow

    Apr 14, 2011 · 135 NULL has no value, and so cannot be compared using the scalar value operators. In other words, no value can ever be equal to (or not equal to) NULL because NULL has no value. …