这是我的 sqlite 声明:
select code ,
case when (max(close)-min(close))/min(close)<0.1 then "grade1"
when (max(close)-min(close))/min(close) <0.2 then "grade2"
when (max(close)-min(close))/min(close) <0.3 then "grade3"
else "grade4" end as type;
使用 (max(close)-min(close))/min(close)
了 3 次,我怎样才能使我的查询语句更简单?