Experts,
The following query works, but I need to add another WHERE statement to only show when there is duplicates in theT1."ItemCode, meaning when it is the same item code.
SELECT T0."U_XXX_L_02", T0."DocNum", T0."CardName", T1."LineNum", T1."ItemCode", T1."Dscription", T1."Quantity", T1."ShipDate", T1."LineStatus"
FROM OPOR T0 INNER JOIN POR1 T1 ON T0."DocEntry" = T1."DocEntry"
WHERE T1."LineStatus" = 'O'
Your help will be appreciated,
Marli