Duplicate records while retrieving data - Goods Inward Note.
Content
Hi,
We recently migrated our Oracle R12 to Oracle Fusion. We have developed some custom reports in our Old Oracle R12, we need to develop it in Oracle Fusion. We have developed a query in Oracle R12 which retrieves correctly, but in Oracle Fusion we are retrieving duplicate records. Please help me with this below query.
SELECT DISTINCT rsh.ROWID, rsh.receipt_num, rsh.ship_to_org_id,
TO_CHAR (TRUNC (rsh.creation_date), 'DD-MON-YYYY') rcp_date,
DECODE (rsh.receipt_source_code,
'VENDOR', rsh.vendor_id,
'CUSTOMER', NULL,
rsh.organization_id
) supplier_id,
DECODE (rsh.receipt_source_code,
'VENDOR', hp.party_name,