Hi can you help me solve my problem.
Need to know what ID that causes the error.
Hi can you help me solve my problem.
Need to know what ID that causes the error.
This query will return all those rows the returns duplicated or just more then one row the meet the conditions.
SELECT B.TRCKG_GRP_REF_CDE
, B.INTERNAL_SHMT_NUM
FROM CGO_CNTR_PACKG_RVW B
, ORSDOC_950_CNTR_MAXSQ_GTT C
WHERE C.TRCKG_GRP_REF_CDE = B.CGO_TRCKG_GRP_REF_CDE
AND C.INTERNAL_SHMT_NUM = B.CGO_INTERNAL_SHMT_NUM
AND C.CNTR_MAX_SEQ_NUM = B.SEQ_NUM)
group by B.TRCKG_GRP_REF_CDE
, B.INTERNAL_SHMT_NUM having count(*) > 1
Its your inner query, this ORA means that there is more then 1 row returning from it, and then you are comparing a column with more then one result.
Either you have to select distinct(incase of just duplicates) or you need to modify your query.