现在 我有两个表
A表
name id city info
a 1 D 12313132
b 2 C 154562
a 2 E 23124
b 1 C 4546
B表
name id city info
a 1 D 12313132
b 2 C 154562
a 2 E 23124
b 1 C 4546
a 3 C 34234每个表都有很多数据,我想查出 那些 在B表中 有数据,但是A表中不存在的数据其中name,id,city 组合可以判断那些在B表中有,A表中没有,但是Sql怎么写啊
A表
name id city info
a 1 D 12313132
b 2 C 154562
a 2 E 23124
b 1 C 4546
B表
name id city info
a 1 D 12313132
b 2 C 154562
a 2 E 23124
b 1 C 4546
a 3 C 34234每个表都有很多数据,我想查出 那些 在B表中 有数据,但是A表中不存在的数据其中name,id,city 组合可以判断那些在B表中有,A表中没有,但是Sql怎么写啊
解决方案 »
- 安装了oracle10g home版,用Database Control登录提示您的用户名和/或口令无效
- oracle 求助 IMP-00037: 未知字符集标记 IMP-00000: 未成功终止导入
- 请问如何在oracle中查询所有用户表的表名、主键名称、索引、外键?(急!!!)
- 关于索引
- 帮忙看下这个错误是怎么回事?
- 多个关键字匹配求助
- 三种常用数据库系统的比较
- 散分:除了oracle之外,还有哪些属于大型数据库的呀?
- 我在win98 下安装了817 for win98 ,安装ok,sqlplus登陆ok,但是测试连接时老说没有监听器,但是我的监听器肯定是配置好的,在Listener
- 大神可以帮我看一下吗?? 我用VS练习语言 到这了是什么鬼
- For循环如何降序
- 求一个sql 语句
minus
select name,id,city from A
select 1 from A where name = b.name and id = b.id and city = c.city
)
select * from A a where a.name = b.name and a.id = b.id and a.city = c.city
)
select 1 from A where name = b.name and id = b.id and city = c.city
)