试试
select c.报告日期,a.姓名 from 学生体温报告 a
join (select distinct 报告日期 from 学生体温报告 where 报告日期>'2020-03-21' ) c on 1=1
where a.报告日期='2020-03-21'
and not exists(
select 1 from 学生体温报告 b
where b.单位=a.单位
and b.班级=a.班级
and b.姓名=a.姓名
and a.报告日期=b.报告日期
and b.报告日期>'2020-03-21')