Redian新闻
>
Re: [转载] what's the equivalent of 'minus' (oracle) in access?
avatar
Re: [转载] what's the equivalent of 'minus' (oracle) in access?# Database - 数据库
q*j
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
avatar
a*a
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

avatar
q*j
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.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。