S
subs
SELECT X.*
FROM PPG AS X INNER JOIN PPG AS Y ON (X.BL<>Y.BL) AND
(X.Ship_Date=Y.Ship_Date) AND (X.Consignee=Y.Consignee) AND
(X.Ozip=Y.Ozip) AND (X.Dzip=Y.Dzip);
I have this query which returns all records with same shipdate, same
consignee, same ozip , same dzip but Different BL.
The above query is returnign records which satisfy the above condition
but giving me DUPLICATE RECORDS. For example a record which has to be
there only once is coming up twice. Can anyone pls correct the query.
Is it because of type of Joins.
Thanks for the help
FROM PPG AS X INNER JOIN PPG AS Y ON (X.BL<>Y.BL) AND
(X.Ship_Date=Y.Ship_Date) AND (X.Consignee=Y.Consignee) AND
(X.Ozip=Y.Ozip) AND (X.Dzip=Y.Dzip);
I have this query which returns all records with same shipdate, same
consignee, same ozip , same dzip but Different BL.
The above query is returnign records which satisfy the above condition
but giving me DUPLICATE RECORDS. For example a record which has to be
there only once is coming up twice. Can anyone pls correct the query.
Is it because of type of Joins.
Thanks for the help