Relational division in mysql without aggregrate functions?

独自空忆成欢 提交于 2019-12-04 22:00:28

What you need is simple codd's relational division.

select distinct p.team from player p 
where not exists
(select * from player p1 
where not exists
(select * from player p2 
where 
p.team=p2.team 
and 
p2.gid=p1.gid))
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!