select name as 姓名,
sum( case when cargo='笔' then 1 else 0 end ) as 笔,
sum( case when cargo='橡皮' then 1 else 0 end ) as 橡皮
from shopping group by name;

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-03
  • 2021-04-07
  • 2022-12-23
  • 2022-03-03
  • 2022-02-27
猜你喜欢
  • 2022-12-23
  • 2021-10-22
  • 2022-12-23
  • 2021-12-31
  • 2022-12-23
  • 2022-12-23
  • 2021-09-13
相关资源
相似解决方案