标签: mysql
我有一张这样的桌子
如何获得仅在数学上不及格的学生姓名?
答案 0 :(得分:0)
尝试一下:
SELECT * from mytable where subject = 'math' and result = 'fail' AND name NOT IN ( select name from mytable where subject != 'math' AND result = 'fail' )