SQL Server 2008:
select 1
where 5 between 1 and 7
1つの結果
select 1
where 5 between 7 and 1
0件の結果
これらの結果と
a between x and y
==
a >= x AND a <= y
更新:
SQL-92の仕様によると(引用):
"X BETWEEN Y AND Z" is equivalent to "X>=Y AND X<=Z"
SQL Server 2008:
select 1
where 5 between 1 and 7
1つの結果
select 1
where 5 between 7 and 1
0件の結果
これらの結果と
a between x and y
==
a >= x AND a <= y
更新:
SQL-92の仕様によると(引用):
"X BETWEEN Y AND Z" is equivalent to "X>=Y AND X<=Z"