- 最后登录
- 2015-2-10
- 在线时间
- 32 小时
- 威望
- 11
- 金钱
- 188
- 注册时间
- 2012-6-27
- 阅读权限
- 10
- 帖子
- 18
- 精华
- 0
- 积分
- 11
- UID
- 540
|
3#
发表于 2014-9-14 20:42:43
优化一下这个TOP SQL
7d7g6tmcjz3bh select a1.work_order, a1.serial_number, a1.customer_sn, g1.pdline_name, nvl(f1.emp_name, f1.emp_no) emp, a1.OUT_PROCESS_TIME from sajet.g_sn_travel a1, sajet.sys_emp f1, sajet.sys_pdline g1, sajet.sys_process h1 where a1.emp_id=f1.emp_id(+) and a1.pdline_id=g1.pdline_id and a1.process_id=h1.process_id and a1.work_order = :iWO and h1.PROCESS_NAME = :PROCESS AND a1.OUT_PROCESS_TIME >= :iTime AND a1.OUT_PROCESS_TIME <= :iiTime order by SERIAL_NUMBER |
|