tb1: style ,type
tb2: style ,type ,qty如何判断 style为A,type 为 7,8,9 是否在tb2中同时存在qty>0
解决方案 »
- with as语句性能求优化
- 游标参数中包含逗号的问题
- 约束问题,高手进!
- 字符集问题
- 如何得到下面的结果?
- 公司开发一个大型电子商务网站,已经用ASP写了部分程序了,请问数据库是采用ORACLE好还是SQLSERVER好?
- oracle 9 2 能否安装到xp professional上啊.
- 求助:安装Oracle数据库后出现的问题
- 怎么将SQL Server 中数据导入ORACLE
- oracle连接问题,急急急急急!!!!!!!!!!!!!!!!
- Win 7 + 64位的Oracle数据库 + 32位的Oracle客户端, PLSQL没有“登录为“选项
- oracle 用sql*loader方式到数据,多个控制文件可以合并吗 ?
select * from tb2 where style='A' and type in (7,8,9) and qty > 0
select a.style,a.type from tb1 a
left join tb2 b on a.style=b.style and a.type = b.type
where a.style='A' and a.type in(7,8,9)
and b.qty>0;