由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - Re: [转载] what's the equivalent of 'minus' (oracle) in access?
相关主题
aks a simple SQL question[转载] what's the equivalent of 'minus' (oracle) in access?
2个table, 一个里面有4万个email, 一个里面有1万6千个email,如何比较?A sql question
难。想了一天了。大牛请进。1. Oracle vs. SQL92 Re: Just
[转载] Can anyone interpret this simple SQL?找不match的记录
菜鸟问.asp 里的select语句在基于SQL sever和Access语法上的不请问这两个SQL QUERY有什么错?
再来一个SQL Server的面试题请大家帮忙看看我写的这个ORACLE查询有什么问题!!跪谢了!
better solution for cross table query in sql?问个SQL问题
Urgent SQL problem!再现急求答案,多谢。
相关话题的讨论汇总
话题: select话题: minus话题: access话题: equivalent话题: where
进入Database版参与讨论
1 (共1页)
q*j
发帖数: 156
1
select a.f1, a.f2
from a
except
select a.f1, a.f2
from a, b
where a.f1=b.f1
and a.f2=b.f2
a*****a
发帖数: 438
2
thanks qqj yet this doesnt work either:(
the one access offers is:
select a.f1, a.f2
from a LEFT JOIN b on a.f1 = b.f1
where (((a.f1) IS NULL));
who can explain LEFT JOIN for me?
tia.

【在 q*j 的大作中提到】
: select a.f1, a.f2
: from a
: except
: select a.f1, a.f2
: from a, b
: where a.f1=b.f1
: and a.f2=b.f2

q*j
发帖数: 156
3
i think left join here means outer join.
try this:
select a.f1, a.f2
from a
where a.f1 not in
(select a.f1 from a, b where a.f1=b.f1)
and a.f2 not in
(select a.f2 from a, b where a.f2=b.f2)

【在 a*****a 的大作中提到】
: thanks qqj yet this doesnt work either:(
: the one access offers is:
: select a.f1, a.f2
: from a LEFT JOIN b on a.f1 = b.f1
: where (((a.f1) IS NULL));
: who can explain LEFT JOIN for me?
: tia.

1 (共1页)
进入Database版参与讨论
相关主题
再现急求答案,多谢。菜鸟问.asp 里的select语句在基于SQL sever和Access语法上的不
因该是很普通的要求, 可想不出怎么办再来一个SQL Server的面试题
compare two large tables SQL (转载)better solution for cross table query in sql?
How to write this queryUrgent SQL problem!
aks a simple SQL question[转载] what's the equivalent of 'minus' (oracle) in access?
2个table, 一个里面有4万个email, 一个里面有1万6千个email,如何比较?A sql question
难。想了一天了。大牛请进。1. Oracle vs. SQL92 Re: Just
[转载] Can anyone interpret this simple SQL?找不match的记录
相关话题的讨论汇总
话题: select话题: minus话题: access话题: equivalent话题: where