在决策报表里使用了下面的查询,目的效果显示出文本“今天没有报告体温的有……”,现在学生的姓名显示不出来, "今天没有体温的有:" + sql("jiaoxei", "select distinct a.姓名 from 学生体温报告 a join (select distinct 报告日期 from 学生体温报告 where 报告日期>'2020-04-07' ) 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 C.报告日期='2020-04-08') and '" + today() + "'", 1, 1) |