Can someone tell me why this code isn't working? I keep getting error at line 1 and 2.
I want to  insert a row into the PROBLEMTABLE table for each row in the CUSTLA table, where CustCode does not match a PK value in the CUSTCATEGORY source table.
The error at line 1 does not give me a reason but the error at line 2 says the column is ambiguously defined.
INSERT INTO PROBLEMTABLE (problemid, source_rowid, source_table, filterid, datetime, action)
    SELECT 
        PROBLEM_SEQ.NEXTVAL, ROWID, 'CUSTLA', 2, CURRENT_DATE, 'MODIFY'
    FROM 
        CUSTLA U, CUSTCATEGORY Y
    WHERE 
        U.CustCode != Y.CustCode;
SELECT * FROM PROBLEMTABLE;
 
     
    