リファレンスガイド> SQL演算子のTDVサポート> 比較演算子
 
比較演算子
TDVは、次の比較演算子をサポートしています。
=(等しい)
<>(等しくない)
<(未満)
>(より大きい)
<=(以下)
>=(以上)
これらの演算子は、Studioインターフェイスからは使用できません。そのため、SQLまたはSQLスクリプトパネルのクエリに手動で入力する必要があります。
比較演算子のいずれかの側のオペランドの値がNULLの場合、論理比較の出力もNULLになります。以下の例では、ProductID値がNULLの行は結果を返しません。
例(等しい)
SELECT ProductName, UnitPrice
FROM /shared/examples/ds_inventory/products products
WHERE ProductID = 5
例(等しくない)
SELECT ProductName, UnitPrice
FROM /shared/examples/ds_inventory/products products
WHERE ProductID <> 10
例(未満)
SELECT ProductName, UnitPrice
FROM /shared/examples/ds_inventory/products products
WHERE ProductID < 10
例(大なり記号)
SELECT ProductName, UnitPrice
FROM /shared/examples/ds_inventory/products products
WHERE ProductID > 10
例(以下)
SELECT ProductName, UnitPrice
FROM /shared/examples/ds_inventory/products products
WHERE ProductID <= 5
例(以上)
SELECT ProductName, UnitPrice
FROM /shared/examples/ds_inventory/products products
WHERE ProductID >= 5