About 46,700 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. sql - How to replace (null) values with 0 output in PIVOT - Stack Overflow

    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 PIVOT (SUM...

  3. 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

  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. So the …

  5. 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 null and it is …

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

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

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

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

  9. sql - ISNULL () function requires two arguments? Simple solution ...

    Jul 29, 2014 · I have misplaced something in the ISNULL() function and need another set of eyes to find it. I've stared at it so much I've become brainlocked (I know what ISNULL() is, this is just a simple …

  10. Why is T-SQL ISNULL() truncating the string and COALESCE is not?

    Sep 19, 2013 · ISNULL() converts the replacement value to the type of the check expression. In this case, the type of the check expression is CHAR(2), so converting the replacement value truncates it …