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)
解决方案 »
- 如何让oracle在事物提交的时候才验证外键约束?
- 头痛,Oracle控制台可以连接,程序无法连接
- oracle9i+tomcat6搭建程序,连接数据库问题!
- 无法打开isqlplus页面
- BLOB与LONG RAW
- java_pool_size的大小显示的不一样??
- oracle增加触发器的问题
- 问题很简单,可还是不会做,各位高人指点啊
- 忘记了win2000的管理员口令,但知道oracle数据库的管理员口令,能不能找回win2000的口令啊?
- 这样的SQL语句能在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
可以的嘛,我这没问题的阿