ABS
ALL
AND
ANY
AVG
bit
COS
COT
DAY
EXP
GO
IN
LEN
LOG
MAX
MIN
NOT
OR
PI
SET
SIN
STR
SUM
TAN
USE
VAR
Expand Minimize
0 out of 11 rated this helpful - Rate this topic

SOME | ANY

SQL Server 2000

Compares a scalar value with a single-column set of values.

Syntax

scalar_expression { = | < > | ! = | > | > = | ! > | < | < = | ! < }
    { SOME | ANY } ( subquery )

Arguments

scalar_expression

Is any valid Microsoft® SQL Server™ expression.

{ = | <> | != | > | >= | !> | < | <= | !< }

Is any valid comparison operator.

SOME | ANY

Specifies that a comparison should be made.

subquery

Is a subquery that has a result set of one column. The data type of the column returned must be the same data type as scalar_expression.

Result Types

Boolean

Result Value

SOME or ANY returns TRUE when the comparison specified is TRUE for ANY pair (scalar_expression, x) where x is a value in the single-column set. Otherwise, returns FALSE.

See Also

CASE

Expressions

Functions

Operators (Logical Operators)

SELECT

WHERE

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.