test表中有A,B,C三列,
要求:
查询表中的数据,当A列大于B列时输出A的,B列大于C的时输出B的,请问怎么写SQL语句呀?
要求:
查询表中的数据,当A列大于B列时输出A的,B列大于C的时输出B的,请问怎么写SQL语句呀?
select case when a > b then a end as a,case when b > c then b end as b from test;