混淆测试数据

git-svn-id: http://code.alibabatech.com/svn/druid/trunk@199 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
wenshao
2011-05-23 08:46:46 +00:00
parent bd71d66a3a
commit 2ef035201c
+2 -2
View File
@@ -7,7 +7,7 @@ from(
from(
select p.custid,p.memberid,p.createtime,p.planid,p.auditstate,p.createid ,p.custappdate,p.modifytime,p.gmtcreate,p.executeState,
c.custname,row_number() over(order by p.memberid asc ,p.createtime DESC ) cnt,p.planbatchid
from q_plan p ,q_custinfo c
from x_plp_f_u_c_k p ,x_xcde c
where p.custid=c.custid
AND p.applytype = 0
AND p.createtime BETWEEN to_date(?,'yyyy-mm-dd')
@@ -30,7 +30,7 @@ FROM (SELECT custid, memberid, createtime, planid, auditstate
FROM (SELECT p.custid, p.memberid, p.createtime, p.planid, p.auditstate
, p.createid, p.custappdate, p.modifytime, p.gmtcreate, p.executeState
, c.custname, row_number() OVER ( ORDER BY p.memberid ASC, p.createtime DESC) AS cnt, p.planbatchid
FROM q_plan p, q_custinfo c
FROM x_plp_f_u_c_k p, x_xcde c
WHERE p.custid = c.custid AND p.applytype = 0 AND p.createtime BETWEEN to_date(?, 'yyyy-mm-dd') AND to_date(?, 'yyyy-mm-dd hh24:mi:ss') AND (p.auditstate = ? AND p.executestate = 1) AND auditstate != 3 AND p.memberid IN (?)
) t
WHERE t.cnt < ?