> (Greater Than) (Transact-SQL)
SQL Server 2008 Books Online (October 2009)
> (Greater Than) (Transact-SQL)

Compares two expressions (a comparison operator). When you compare nonnull expressions, the result is TRUE if the left operand has a value higher than the right operand; otherwise, the result is FALSE. If either or both operands are NULL, see the topic SET ANSI_NULLS (Transact-SQL).

Topic link icon Transact-SQL Syntax Conventions

Syntax

expression > expression
Arguments

expression

Is any valid expression. Both expressions must have implicitly convertible data types. The conversion depends on the rules of data type precedence.

Result Types

Boolean

See Also

Reference

Data Types (Transact-SQL)
Operators (Transact-SQL)

Other Resources

Comparison Operators (Database Engine)

Help and Information

Getting SQL Server 2008 Assistance
Community Content

SET ANSI_NULLS Reference?
Added by:Mike C_1
"If either or both operands are NULL, see the topic SET ANSI_NULLS (Transact-SQL)."

SET ANSI_NULLS is irrelevant to this article. If either or both operands are NULL the result of a greater-than comparison is always UNKNOWN regardless of the SET ANSI_NULLS setting.
© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View