SQL Flow Field Guide

> (Greater Than)

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

comparison > (Greater Than)

What changes

Input
two expressions
Output or change
TRUE, FALSE or UNKNOWN (UNKNOWN when either side is NULL under ANSI_NULLS ON)

Syntax at a glance

expression > expression

Work example

A filter needs > (Greater Than) to compare values with a stated boundary rule.

Test equal, lower, higher, and NULL values. Prefer the standard comparison spelling used by the project.

Check your work > (Greater Than). The boundary result for > (Greater Than) matches the written rule and NULL is handled separately.

Open Microsoft Learn for full syntax, permissions, and details for your version.