发布网友 发布时间:2022-04-23 08:56
共1个回答
热心网友 时间:2022-06-18 17:16
select prh.requisition_header_id ,prl.requisition_line_id ,prd.distribution_id ,pha.po_header_id ,pla.po_line_id ,pll.line_location_id ,pda.po_distribution_id from po_requisition_headers_all prh --PR头 ,po_requisition_lines_all prl --PR行 ,po_req_distributions_all prd --PR分配 ,po_headers_all pha --PO头 ,po_lines_all pla --PO行 ,po_line_locations_all pll --PO发运 ,po_distributions_all pda --PO分配 where 1 = 1 --PR关联 and prh.requisition_header_id = prl.requisition_header_id and prl.requisition_line_id = prd.requisition_line_id --PO关联 and pha.po_header_id = pla.po_header_id and pla.po_line_id = pll.po_line_id and pll.line_location_id = pda.line_location_id --PR&PO关联 and prl.line_location_id = pll.line_location_id and prd.distribution_id = pda.req_distribution_id --限定条件 and prl.requisition_header_id = 41