PO SUMMARY REPORT QUERY
Dear Friends,
Iam finding it very hard to debug this query as its running for hours in Discoverer.
Can you please help me to debug this query please.
SELECT DISTINCT --
hou.attribute3
"State",
--
hou.name
"Branch",
pohi.po_num, poli.line_num, pohi.ship_to_location,
poli.vendor_name, poli.vendor_site_code, poli.order_date,
msib.segment1
"ITEM", poli.item_description, poli.category_id,
poli.quantity, poli.unit_price, poli.unit_meas_lookup_code,
poli.amount, poli.currency_code, pollo.quantity_received,
pollo.quantity_cancelled, poli.authorization_status,
pav.agent_name
"Buyer", pohi.vendor_contact, pohi.closed_code,
pohi