select a.acct_id,a.ACCT_SEQ_NBR,a.sell_id
from lbas.acct a
where not exists
(select 'X'
from charge.b_acct b
where a.ACCT_ID = b.ACCT_ID and
a.ACCT_SEQ_NBR = b.ACCT_SEQ_NBR and
a.sell_ID = b.sell_ID)
from lbas.acct a
where not exists
(select 'X'
from charge.b_acct b
where a.ACCT_ID = b.ACCT_ID and
a.ACCT_SEQ_NBR = b.ACCT_SEQ_NBR and
a.sell_ID = b.sell_ID)
解决方案 »
- 关于ORA-12170:TNS:连接超时,给点线索谢谢!
- SYS_B_0
- 系统一直重启,怀疑oracle 导致,帮忙分析下日志。谢谢!
- dbms_stats分析表后,查询不走索引了
- 一换不同网段的ip,oracle服务能启,但PL/SQL就连接不上了 (急,高手请进!~)
- 使用.. over (partition by..)遇到的问题
- 一个关于数据查询语句的问题
- 如何在oracle的函数中,调用其他schema中的表?
- 我在2003中装oracle9i,每次启动都出现agntsrvc.exe错误!怎么处理?
- oracle 表数据是会更新的,查询的时候又必须分页查询,怎么分页查询办?
- 100分求"如何把一行记录中所有字段的值连成一个大的字符串"
- 刚刚要学习Oracle,请各位前辈指点一下
SQL> select * from temp1;ID NAME MONTH MONEY
-- ---------- ----- -----
1 11 1 10
2 22 1 10
3 11 2 20
4 22 2 20
5 11 3 30
6 22 3 306 rows selectedExecuted in 0.015 secondsSQL> select * from temp2;CHENG1 CHENG2 CHENG3 NAME
------ ------ ------ ----------
12 11 10 name1
34 11 10 name2
13 11 10 name3Executed in 0.015 secondsSQL> select a.*,b.* from temp1 a,temp2 b where a.name = b.cheng2 and a.money <> b.cheng3;ID NAME MONTH MONEY CHENG1 CHENG2 CHENG3 NAME
-- ---------- ----- ----- ------ ------ ------ ----------
3 11 2 20 12 11 10 name1
5 11 3 30 12 11 10 name1
3 11 2 20 34 11 10 name2
5 11 3 30 34 11 10 name2
3 11 2 20 13 11 10 name3
5 11 3 30 13 11 10 name3
可以的嘛,我这没问题的阿