About 186,000 results
Open links in new tab
  1. sql - how to catch NULL values using case statement - Stack …

    Jan 18, 2010 · here in this query I want to replace the values in Person.Contact of Adventureworks database with some new values. The below query case statement is working …

  2. SQL Data Reader - handling Null column values - Stack Overflow

    Using a default value expression will change database nulls to non-null values for value types like int, datetime, bit etc. Lastly, whilst testing the above methods across all SQL Server data types …

  3. sql - NULL values inside NOT IN clause - Stack Overflow

    SQL NOT IN constraint and NULL values From the text of the question it appears that the problem was occurring in a SQL DML SELECT query, rather than a SQL DDL CONSTRAINT.

  4. Is it safe to use SUM () without ISNULL () - Stack Overflow

    May 18, 2016 · In views on SQL server 2005, SUM (col1) will return NULL if any col1 value is NULL, and if you put ISNULL on the sum, it will just turn this NULL into 0, which is incorrect. …

  5. How to replace (null) values with 0 output in PIVOT

    65 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:

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

    I’ve got a date column where some rows have got NULL values. I would like to use ISNULL or something like that to substitute those values with something like ‘N/A’, however, when I try to …

  7. sql server - SQL Inner Join On Null Values - Stack Overflow

    I have a Join SELECT * FROM Y INNER JOIN X ON ISNULL(X.QID, 0) = ISNULL(y.QID, 0) Isnull in a Join like this makes it slow. It's like having a conditional Join. Is there any work around to …

  8. sql server - Handling NULLs in SQL query - Stack Overflow

    Jul 23, 2012 · 0 Both are correct if the values in the column are either greater than 0 or null. You can refer to this if you want to know about the weird behavior of nulls in SQL Server.

  9. sql server - How to handle NULLs/Blanks in SSIS - Stack Overflow

    Dec 21, 2017 · When you are working to export your data from Database to Flat file then you cant handle the null values of data type INT. Refer to this link where which data types handle the …

  10. SQL: sum 3 columns when one column has a null value?

    If the column has a 0 value, you are fine, my guess is that you have a problem with a Null value, in that case you would need to use IsNull(Column, 0) to ensure it is always 0 at minimum.