if object_Id('testTb')is not null drop table testTb
go
create table testTb (A int , B int ,C int)
insert into testTb
select 1,2,3 union all
select 1,3,2 union all
select 2,1,3 union all
select 3,1,4

select
     (case when A > B then A else B end) as E,
     (case when B > C then B else C end) as F
from testTb
drop table testTb

相关文章:

  • 2021-12-22
  • 2021-07-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-03
  • 2021-07-26
猜你喜欢
  • 2019-11-06
  • 2022-01-04
  • 2021-12-12
  • 2021-11-09
  • 2022-12-23
  • 2021-09-12
  • 2021-12-22
相关资源
相似解决方案