面試遇到的問題

題目一: select t.name, max(case when t.man_sex='1' then t.c else 0 end) '男', max(case when t.man_sex='2' then t.c else 0 end) '女' from( select name,man_sex,count(1) as c from dept_mianshi group by name,m
相關文章
相關標籤/搜索