select s.年级号, s.班号, count(distinct s.学号) 时间段内在册[学号]总数, count(distinct g.学号) 时间段内有多少个在册的[学号]购书 from 学生表 s left join 购书记录表 g on s. 学号=g.学号 where s.年级号='xxx', s.班号='xxx',g.时间段 between 'xxx' and 'xxx'
22,209
社区成员
121,730
社区内容
加载中
试试用AI创作助手写篇文章吧