About 50,600 results
Open links in new tab
  1. 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.

  2. 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. …

  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. SQL Server String Concatenation with Null - Stack Overflow

    May 26, 2010 · 81 From SQL Server 2012 this is all much easier with the CONCAT function. It treats NULL as empty string

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

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

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

    Nov 11, 2022 · Generally, it's recommended to do not use non-standard functions when not required. I agree your query with OR should be prefered, but even if you want to avoid that, …

  7. sql - isnull vs is null - Stack Overflow

    Jul 27, 2015 · isnull(name,'') <> name This one changes the value of null fields to the empty string so they can be used in a comparision. In SQL Server (but not in Oracle I think), if a value is …

  8. 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 …

  9. SQL - Difference between COALESCE and ISNULL? [duplicate]

    Sep 16, 2013 · What are the practical differences between COALESCE() and ISNULL(,'')? When avoiding NULL values in SQL concatenations, which one is the best to be used? Thanks!

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

    Using ISNULL or COALESCE on date column Asked 6 years, 8 months ago Modified 3 years, 6 months ago Viewed 43k times