Name chengji fengshu
张三 数学 75
张三 语文 81
李四 数学 90
李四 语文 76
王五 数学 81
王五 语文 100
王五 英语 90


SQL Server:

select distinct [Name] from [表] where [Name] not in (
select [Name] from [表] where [fengshu]<=80
)

或者

select distinct name from A

minus

select name from A where fenshu<80
posted on 2015-07-28 17:51  linbl  阅读(841)  评论(0编辑  收藏  举报