--select * from ap_holds_all
--select * from PO_LINE_LOCATIONS_ALL
--select * from ap_invoices_all
--PO_LINES_ALL
select * from PO_DISTRIBUTIONS_INTERFACE
R3133
R3940
ARAJENDRAN3@MCDERMOTT.COM
Anbarasan Rajendran
select a.hold_reason, a.hold_date,b.invoice_num, a.held_by, c.quantity,
c.quantity_received, c.quantity_accepted,c.quantity_billed,d.Project
from ap_holds_all a, ap_invoices_all b, PO_LINE_LOCATIONS_ALL c,
PO_DISTRIBUTION_INTERFACE d
where a.line_location_id = c.line_location_id and a.line_location_id =
d.line_locaton_id and a.invoice_id = b.invoice_id
and d.project in(N0510,N0511)
and d.project in('N0510','N0511')
select a.hold_reason, a.hold_date,b.invoice_num, a.held_by, c.quantity,
c.quantity_received, c.quantity_accepted,c.quantity_billed,d.Project
from ap_holds_all a, ap_invoices_all b, PO_LINE_LOCATIONS_ALL c,
PO_DISTRIBUTIONS_INTERFACE d
where a.line_location_id = c.line_location_id and a.line_location_id =
d.line_location_id and a.invoice_id = b.invoice_id
64588,72937,75080,70632
and 64587
300000019048881
1194005
PJF_PROJECTS_BASIC_V
select a.hold_reason, a.hold_date,b.invoice_num, a.held_by, c.quantity,
c.quantity_received, c.quantity_accepted,c.quantity_billed,e.line_num,d.segment1
from ap_holds_all a, ap_invoices_all b, PO_LINE_LOCATIONS_ALL c, PO_HEADERS_ALL d,
PO_LINES_ALL e, PO_DISTRIBUTIONS_ALL f, PJF_PROJECTS_BASIC_V g
where a.line_location_id = c.line_location_id and a.invoice_id = b.invoice_id and
c.po_header_id = d.po_header_id and c.po_line_id = e.po_line_id and e.po_line_id =
f.po_line_id and f.pjc_project_id = g.project_id