A score sheet to query the information of absent students

Score table as above

Query all subject information: select distinct ObjectName from TomesA;

To query the information of all students who did not take the test:

select StuName from TomesA
      group by StuName
      having COUNT(stuName)<(select count(distinct ObjectName) from TomesA)

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324935820&siteId=291194637