问个问题,怎么以最小值为查询条件 A Ba 1c 2d 3e 4w 1z 2y 2u 2不知道字段B的最小值,查询字段2最小的字段。结果为a w 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select *from tb twhere not exists (select 1 from tb where b < t.b) select *from tbwhere b = (select min(b) from tb) select *from tb where b in (select min(b) from tb) SQL语句求助 sql2000 互相比较问题 谢谢 想到到一个代表时间的字符串所在的季度,请各路高手帮忙 问个行转换到列的查询 请教:关于sql语句问题 如何对某个字段的数值全部保留2位小数? sql怎么根据平均成绩从低到高,且根据百分比从高到低 这样的数据怎样排序,求SQL语句 如何启动DTC 急用一个月报汇总的SQL语句? 问个问题,怎么以最小值为查询条件 如何对比两个表中的记录,查找出不同的记录?
select *
from tb t
where not exists (select 1 from tb where b < t.b)
select *
from tb
where b = (select min(b) from tb)
select *
from tb where b in (select min(b) from tb)