D dwn.220.v.ua

if field is null sql server

SELECT * FROM myTable WHERE myColumn IS NULL . If you went with ''...

📦 .zip⚖️ 118.5 MB📅 22 Aug 2025

SELECT * FROM myTable WHERE myColumn IS NULL . If you went with '', then you could set the column to NOT NULL as well. Just a.

⬇ Download Full Version

In this case, just update the adding expression to use COALESCE (or ISNULL ...

📦 .zip⚖️ 38.8 MB📅 22 May 2026

In this case, just update the adding expression to use COALESCE (or ISNULL or CASE) and remove the IF statement entirely. Update.

⬇ Download Full Version

update tableA set first_name = case when first_name is null then null else ...

📦 .zip⚖️ 47.4 MB📅 09 Jan 2026

update tableA set first_name = case when first_name is null then null else 'aaa' end, last_name = case when last_name is null then null else.

⬇ Download Full Version

SELECT ColumnA, CASE WHEN ColumnA IS NULL THEN See: CASE (SQL-Server Transa...

📦 .zip⚖️ 71.1 MB📅 31 Dec 2025

SELECT ColumnA, CASE WHEN ColumnA IS NULL THEN See: CASE (SQL-Server Transact-SQL) ColumnA IS NOT NULL) AS subTable.

⬇ Download Full Version

You want to use the COALESCE function. SELECT Name, DOB, COALESCE(Address1,...

📦 .zip⚖️ 40.4 MB📅 23 Feb 2026

You want to use the COALESCE function. SELECT Name, DOB, COALESCE(Address1, 'NA'), COALESCE(Address2, 'NA'), COALESCE(City.

⬇ Download Full Version

SELECT CASE WHEN dwn.220.v.uatrate IS NULL THEN 1 ELSE /sqlservertip//decid...

📦 .zip⚖️ 15.8 MB📅 12 Apr 2026

SELECT CASE WHEN dwn.220.v.uatrate IS NULL THEN 1 ELSE /sqlservertip//deciding-between-coalesce-and-isnull-in-sql-server/.

⬇ Download Full Version

SQL Server (starting with ) yes Is the expression to be returned if check_e...

📦 .zip⚖️ 67.9 MB📅 28 Aug 2025

SQL Server (starting with ) yes Is the expression to be returned if check_expression is NULL. replacement_value must be of a It substitutes the value 50 for all NULL entries in the Weight column of the Product table.

⬇ Download Full Version

In SQL Server, the ANSI_NULLS option controls both default If ANSI_NULLS is...

📦 .zip⚖️ 93.8 MB📅 06 Sep 2025

In SQL Server, the ANSI_NULLS option controls both default If ANSI_NULLS is turned on (the default), the IS NULL For example, the TerritoryID column in the AdventureWorks Customer table allows.

⬇ Download Full Version

An extension to @db2's answer with less (read:zero) hand-wrangling: DE...

📦 .zip⚖️ 83.3 MB📅 18 Jan 2026

An extension to @db2's answer with less (read:zero) hand-wrangling: DECLARE @tb NVARCHAR() = N'dbo.[table]'; DECLARE @sql.

⬇ Download Full Version

Using T-SQL (works with Sybase and Microsoft SQL Server) SELECT If either o...

📦 .zip⚖️ 116.9 MB📅 21 Mar 2026

Using T-SQL (works with Sybase and Microsoft SQL Server) SELECT If either of those are NULL then everything will be NULL. If that's the.

⬇ Download Full Version

Changing the data structure of a column in SQL Server from NULL to NOT NULL...

📦 .zip⚖️ 42.1 MB📅 30 Sep 2025

Changing the data structure of a column in SQL Server from NULL to NOT NULL If all went according to plan, SQL Server will issue an error stating that the.

⬇ Download Full Version

In Brief If you have a column in a SQL Server table that does not allow NUL...

📦 .zip⚖️ 59.9 MB📅 30 Sep 2025

In Brief If you have a column in a SQL Server table that does not allow NULL values and you need to change it to allow NULLs, here is how you do it. Take our.

⬇ Download Full Version

The second argument in this case is always ” (blank). Why? If the field val...

📦 .zip⚖️ 46.4 MB📅 30 Jan 2026

The second argument in this case is always ” (blank). Why? If the field value is blank, the end result will be Null. Also, if the first argument is Null.

⬇ Download Full Version

In order to check, in Microsoft SQL Server, whether a condition is NULL you...

📦 .zip⚖️ 79.8 MB📅 29 Nov 2025

In order to check, in Microsoft SQL Server, whether a condition is NULL you cannot use: Instead you have to use following pattern.

⬇ Download Full Version

The SQL Server (Transact-SQL) IS NOT NULL condition is used to test for a N...

📦 .zip⚖️ 91.4 MB📅 09 Feb 2026

The SQL Server (Transact-SQL) IS NOT NULL condition is used to test for a NOT NULL If expression is NOT a NULL value, the condition evaluates to TRUE.

⬇ Download Full Version