About 50,500 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. So the …

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

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

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

  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, better use …

  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 - Select a column if other column is null - Stack Overflow

    Mar 26, 2012 · SELECT ISNULL(a, b) b gets selected if a is null. Also, you can use the WHEN/THEN select option, lookup in BOL. Essentially: its c switch/case block meets SQL.

  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 CAST, CONVERT …

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