select distinct ord.order_number from oe_order_headers_all ord, wsh_delivery_details det, apps.WSH_DSNO_DELIVERY_ATTRIBS_V asg, wsh_delivery_assignments dre where det.source_header_id = ord.header_id and dre.delivery_detail_id = det.delivery_detail_id and dre.delivery_id=asg.delivery_id
and dre.delivery_id=$delivery_id
MSN:renzhuoren@hotmail.com
My Oracle Application 11i Blog: http://blog.sina.com.cn/u/1213167713