select * from (select * from
UT_MEMBERORGRELA t where not exists
(select 1 from UT_MEMBERORGRELA t1 where t1.Pkid=t.pkid and TRUNC(t1.Enterdate)>TRUNC(t.Enterdate)))
where mpkid='RTCS000000000109364'
一对三的结果,这样查询还是三条,为什么??
UT_MEMBERORGRELA t where not exists
(select 1 from UT_MEMBERORGRELA t1 where t1.Pkid=t.pkid and TRUNC(t1.Enterdate)>TRUNC(t.Enterdate)))
where mpkid='RTCS000000000109364'
一对三的结果,这样查询还是三条,为什么??
解决方案 »
- win732位系统安装oracle11G 提示网络错误
- Oracle10g linux下安装报Error in writing to directory /tmp/OraInstall....
- 想了解为什么这里0.99999 为什么必须是精确到小数点后5位
- 那位兄弟推荐几本oracle的书,比较深入的,一方面是开发的,一方面是数据库管理的
- ZHS16GBK导入US7ASCII字符集问题
- 索引与title='标题'效率那个高
- 如何解决帐户经常被锁定的问题
- oracle 10g 不能登陆了
- 怎样在PL/SQL DEVELOPER里批量执行脚本?
- (抢分啦)怎样启动Oracle Database Configuation Asssistant?
- oracle用户自定义函数问题,望求助!!
- 一个弱弱的查询问题
where t1.Pkid=t.pkid
改成
where t1.mPkid=t.mpkid
吧
select t.* from
UT_MEMBERORGRELA t where not exists
(select 1 from UT_MEMBERORGRELA t1 where t1.Pkid=t.pkid and t1.Enterdate>t.Enterdate)