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)