|
select
h.order_number
,h.cust_po_number
,rc.customer_name
,h.ordered_date
,l.line_number
,l.shipment_number
,l.ordered_item
,l.ordered_quantity
,l.order_quantity_uom
,l.shipped_quantity
,l.actual_shipment_date
,l.invoiced_quantity
from
oe_order_headers_all h,
oe_order_lines_all l,
ra_customers rc
where
h.header_id=l.header_id
and l.ordered_quantity>0
and h.sold_to_org_id=rc.customer_id
and h.org_id=&p_org
--随便写了个简单的,将就着还是可以用用的 |
|