What Happens If NULL Values Are Involved in Bitwise Operations?
Submitted by: AdministratorIf NULL values are involved in bitwise operations, the result will be binary NULL values. The following tutorial script shows you some good examples:
SELECT 1 | NULL;
GO
-----------
NULL
SELECT 707 & NULL;
GO
-----------
NULL
SELECT ~NULL;
GO
-----------
NULL
Submitted by: Administrator
SELECT 1 | NULL;
GO
-----------
NULL
SELECT 707 & NULL;
GO
-----------
NULL
SELECT ~NULL;
GO
-----------
NULL
Submitted by: Administrator
Read Online MS SQL Server Job Interview Questions And Answers
Top MS SQL Server Questions
☺ | PHP MSSQL - How To Display a Past Time in Days, Hours and Minutes? |
☺ | How To Create a View on an Existing Table in MS SQL Server? |
☺ | How To Select All Columns of All Rows from a Table with a SELECT statement in MS SQL Server? |
☺ | How To Convert a Numeric Expression from One Data Type to Another? |
☺ | What Are the Character String Functions Supported by SQL Server 2005? |
Top Databases Programming Categories
☺ | RDBMS Interview Questions. |
☺ | SQL Interview Questions. |
☺ | SSRS Interview Questions. |
☺ | Database Administrator (DBA) Interview Questions. |
☺ | Sybase Interview Questions. |