About 106,000 results
Open links in new tab
  1. How do I check if a Sql server string is null or empty

    13 In SQL Server 2012 you have IIF, e.g you can use it like SELECT IIF(field IS NULL, 1, 0) AS IsNull The same way you can check if field is empty.

  2. sql - Using IsNull () in a WHERE clause - Stack Overflow

    Feb 10, 2017 · Using IsNull () in a WHERE clause Asked 8 years, 8 months ago Modified 6 years ago Viewed 11k times

  3. sql - How to replace (null) values with 0 output in PIVOT - Stack …

    I tried to convert the (null) values with 0 (zeros) output in PIVOT function but have no success. Below is the table and the syntax I've tried: SELECT CLASS, [AZ], [CA], [TX] FROM #TEMP …

  4. Replacing NULL with 0 in a SQL server query - Stack Overflow

    The ISNULL return value is always considered NOT NULLable (assuming the return value is a non-nullable one) whereas COALESCE with non-null parameters is considered to be NULL. …

  5. SQL Server String Concatenation with Null - Stack Overflow

    May 26, 2010 · I am creating a computed column across fields of which some are potentially null. The problem is that if any of those fields is null, the entire computed column will be null. I …

  6. SQL Server Case Statement when IS NULL - Stack Overflow

    Jul 26, 2013 · I'm trying to do an IF statement type function in SQL server. Where there is a NULL in the field, I want it to take a field from one of the tables and add 10 days to it. And if possible …

  7. replace NULL with Blank value or Zero in sql server

    Oct 1, 2013 · Different ways to replace NULL in sql server Replacing NULL value using: 1. ISNULL () function 2. COALESCE () function 3. CASE Statement SELECT Name as …

  8. sql - Using ISNULL or COALESCE on date column - Stack Overflow

    May 20, 2022 · Using ISNULL or COALESCE on date column Asked 6 years, 7 months ago Modified 3 years, 5 months ago Viewed 43k times

  9. Change NULL values in Datetime format to empty string

    ISNULL(CONVERT(varchar(50), [Amort Into Default] ),'') Now I am able to convert into empty string but now those datetime are converted to string which I needed in datetime So I try to …

  10. How to use isnull in where clause of SQL - Stack Overflow

    Nov 11, 2022 · How to use isnull in where clause of SQL Asked 2 years, 11 months ago Modified 2 years, 11 months ago Viewed 4k times