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