RAND
SIGN
PI
正は1、0は0、負は-1を返します。
SIGN(x)
下記の値を入力するとサンプルに即時反映されます。
order_id
profit
direction
financial_records
-- 손익 방향 표시 SELECT order_id, profit, SIGN(profit) AS direction FROM financial_records;