SqlServer min函数与 case when结合

表Table_1数据

-- 需求:不使用where条件,查询A列,值为'A'的,B列的最小值
select MIN(case A  when 'A' then B end) from Table_1 

结果

原文地址:https://www.cnblogs.com/birdGe/p/13476070.html