SELECT
*
FROM
T_ORD
WHERE
IF (
xd__T_ORD.LOG_STAT_CD >= 3050.160,-- 条件
LOG_STAT_CD >= 3050.160 -- true
AND LOG_STAT_CD <= 3050.220,
AND LOG_STAT_CD >= 3050.221 -- false
AND LOG_STAT_CD <= 3050.222
)