当QAC017为11点和16时,得到的BZ值减半
输出QAC017 BZ
11 BZ/2
12 BZ
select time, case when time in ('11','16') then BZ/2 else BZ end as BZ from ( 你原来的sql ) t
你把sql 贴上来
case when QAC017='16' or QAC017='11' then
BZ/2
else BZ end BZ