某个表格存着s_name subject score 三个字段,比如某一行是 张三 数学 76,现在要选取出所有科目成绩都大于80分的学生名字,请写出sql语句
参考回答:
select s_name from table_name where s_name not in (select s_name from table_name where score <80)
扫描二维码,关注牛客网
下载牛客APP,随时随地刷题