08 2020 档案
SqlServer min函数与 case when结合
摘要:表Table_1数据 -- 需求:不使用where条件,查询A列,值为'A'的,B列的最小值 select MIN(case A when 'A' then B end) from Table_1 结果 阅读全文
posted @ 2020-08-11 15:46 爱写代码的鸟 阅读(894) 评论(0) 推荐(0)