这个查询怎么写? select t.objid, test.仓库, t.物资编码 from test right outer join (select distinct objid, 物资编码 from test group by objid, 物资编码) t on test.objid=t.objid and test.物资编码=t.物资编码 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select a.objid,a.仓库,a.物资编码from test a,(select objid,仓库 from test group by objid,仓库 having count(*)>1) bwhere a.objid=b.objid and a.厂库=b.厂库 select objid,min(仓库) as 仓库,物资编码 from test group by objid, 物资编码 如何定义一个字段,只能接受字母 问一下这样的存储过程为啥建立job会出现这样的失败? 请各位高手帮我分析一下 if sqlca.sqlnrows=0 then在触发器里怎么写? 关于exp/imp的问题 unix下的oracle 数据库启动 多库分页问题 同一个sql语句在不同的机器上执行时间相差很大,为什么? 这样的语句写呀!!! tunning是什么意思? 千呼万唤始出来的Oracle 10g Release 2目前已经提供下载,为什么会这样?? 看看这几道题是不是你想象中那么简单,先做出来先给分
from test a,(select objid,仓库 from test group by objid,仓库 having count(*)>1) b
where a.objid=b.objid and a.厂库=b.厂库