求助!《数据库系统概论》上的一道习题,查询遇到难题了。 本帖最后由 leigema 于 2012-12-11 12:38:29 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select distinct JNOfrom SPJ awhere not exists ( select 1 from SPJ where SNO='S1' and PNO not in (select PNO from SPJ where JNO=a.JNO)) mysql去除一张表中的重复数据问题,求高手! 请教一下,这两条SQL语句执行效率哪个高点 ERROR 1044 求助~ SQl executon error # 1064 是什么 mysql 一个问题,50分 不评测,只调查!请实事求是的回答:贵公司关键业务所使用的数据库是什么? 求问两个查询怎么写 找重复的数据 关于存储过程不起作用的问题! MySQL两表(通过相同的班级和科目)对比查询不同的列 mysql 的compute 安装编译mysql5.1源代码小问题?
from SPJ a
where not exists (
select 1 from SPJ where SNO='S1' and PNO not in (select PNO from SPJ where JNO=a.JNO)
)