(1):select 姓名,科目,成绩 from t表 awhere not exists(select * from t表 b where b.成绩 <80 and a.姓名 = b.姓名 and a.科目 = b.科目)(2):deletefrom t表where id not in( 展开
(1):select 姓名,科目,成绩 from t表 awhere not exists(select * from t表 b where b.成绩 <80 and a.姓名 = b.姓名 and a.科目 = b.科目)(2):deletefrom t表where id not in( select id from t表 a where id in(select min(id) from t表 b where a.姓名 = b.姓名 and a.科目 = b.科目 and a.成绩 = b.成绩) ) 收起