出货后还在tage的so
2015-11-23 19:38
736 查看
---出货后还在stage的状态
select stp1.stop_description, wdd.oe_interfaced_flag, wdd.inv_interfaced_flag,
decode(stops.pending_interface_flag, NULL, 'Not Pending', 'Y', 'Pending', stops.pending_interface_flag) pending_interface_flag,
wdd.source_header_id, wdd.source_line_id, assign.delivery_id, assign.delivery_detail_id,
deli.name deli_name, deli.status_code deli_status,
legs.pick_up_stop_id,legs.drop_off_stop_id,
stops.status_code trip_stop_status,stops.actual_departure_date,
trips.name trip_name, trips.trip_id,trips.status_code trip_status
from wsh_delivery_details wdd, wsh_delivery_assignments assign,
wsh_new_deliveries deli,wsh_delivery_legs legs,
wsh_trip_stops stops,wsh_trips trips,
oe_order_headers_all ooh, WSH_SRS_TRIP_STOPS_V stp1,
oe_order_lines_all ool
where wdd.source_header_id = ooh.header_id
and ooh.header_id = ool.header_id
and ool.flow_status_code = 'CLOSED'
and wdd.delivery_detail_id =assign.delivery_detail_id
and assign.delivery_id = deli.delivery_id
and deli.delivery_id=legs.delivery_id
and legs.pick_up_stop_id = stops.stop_id
and stp1.stop_id = stops.stop_id
and stops.trip_id = trips.trip_id
and ooh.order_number = &order_number
and nvl(inv_interfaced_flag, 'N') <> 'Y'
order by assign.delivery_assignment_id, assign.delivery_id, assign.delivery_detail_id;
select stp1.stop_description, wdd.oe_interfaced_flag, wdd.inv_interfaced_flag,
decode(stops.pending_interface_flag, NULL, 'Not Pending', 'Y', 'Pending', stops.pending_interface_flag) pending_interface_flag,
wdd.source_header_id, wdd.source_line_id, assign.delivery_id, assign.delivery_detail_id,
deli.name deli_name, deli.status_code deli_status,
legs.pick_up_stop_id,legs.drop_off_stop_id,
stops.status_code trip_stop_status,stops.actual_departure_date,
trips.name trip_name, trips.trip_id,trips.status_code trip_status
from wsh_delivery_details wdd, wsh_delivery_assignments assign,
wsh_new_deliveries deli,wsh_delivery_legs legs,
wsh_trip_stops stops,wsh_trips trips,
oe_order_headers_all ooh, WSH_SRS_TRIP_STOPS_V stp1,
oe_order_lines_all ool
where wdd.source_header_id = ooh.header_id
and ooh.header_id = ool.header_id
and ool.flow_status_code = 'CLOSED'
and wdd.delivery_detail_id =assign.delivery_detail_id
and assign.delivery_id = deli.delivery_id
and deli.delivery_id=legs.delivery_id
and legs.pick_up_stop_id = stops.stop_id
and stp1.stop_id = stops.stop_id
and stops.trip_id = trips.trip_id
and ooh.order_number = &order_number
and nvl(inv_interfaced_flag, 'N') <> 'Y'
order by assign.delivery_assignment_id, assign.delivery_id, assign.delivery_detail_id;
相关文章推荐
- body-parser和multer
- 设计模式-结构型模式
- linux grep 命令
- 正则表达式
- 设计模式-创建型模式
- foreach遍历对象的属性
- STM32栈和堆使用不同RAM的实现方法
- ios autolayout
- 【人月神话】第一章:焦油坑
- Linux部分命令概括
- Revit二次开发--"Add Hello World Ribbon Panel"
- ar list
- mongodb使用备忘
- 服务器架设笔记——多模块和全局数据
- IOS开发基础Object-C(09)—OC内存管理(3)-@property的参数详解
- SaaS应用“超级表格”获数百万天使融资
- 转载 Url编码
- Spring下mybatis多数据源配置
- 如何删除数组中不需要的数据
- Iterator(迭代器)接口 --对象循环遍历