假设仪表有3列:A,B,C
我想选出B为某个值时C为最大值的情况。
我的写法:
select A, B,C from tablename where A='某个值' and B
=(Select max(B) from tablename where A='某个值' )
我觉得这样的写法不好,请问有没有更好的写法?谢谢,不要闲分少呀.
我想选出B为某个值时C为最大值的情况。
我的写法:
select A, B,C from tablename where A='某个值' and B
=(Select max(B) from tablename where A='某个值' )
我觉得这样的写法不好,请问有没有更好的写法?谢谢,不要闲分少呀.
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货