OR (SQL Server Compact Edition)

Combines two conditions. When more than one logical operator is used in a statement, OR operators are evaluated after AND operators. You can change the order of evaluation by using parentheses.


Boolean_expression OR Boolean_expression


  • Boolean_expression
    Any valid expression in Microsoft SQL Server 2005 Compact Edition that returns TRUE, FALSE, or UNKNOWN.

Result Types


Return Value

OR returns TRUE when either of the conditions is TRUE.