<> (Not Equal To) (SQL Server Compact)

Compares two expressions. When you compare nonnull expressions by using this operator, the result is TRUE when the left operand is not equal to the right operand. Otherwise, the result is FALSE.

Syntax

expression < > expression

Arguments

  • expression
    Any valid expression in Microsoft SQL Server Compact. Both expressions must have implicitly convertible data types. The conversion depends on the rules of data type precedence.

Result Types

bit

Example

The following example uses the not equal to comparison operator to find all orders in the Order Details table with quantities not equal to 100 units.

SELECT * FROM "Order Details" WHERE Quantity <> '100'