I can't see my error. I marked the places SQL Developer is citing errors. Can you see where I am going wrong? ZCTA5_2000 is a valid table with data.
CREATE OR REPLACE TRIGGER zip_trigger
BEFORE INSERT ON ZCTA5_2000
FOR EACH ROW
DECLARE
low_zip NUMBER(5);
high_zip NUMBER(5); <--- Error PL/SQL: SQL Statement ignored ******
BEGIN <-----Error PL/SQL: ORA-00933: SQL command not properly ended ********
SELECT LOW_ZIP, HIGH_ZIP FROM ZIPTABLE
INTO low_zip, high_zip
WHERE :NEW.STATE = STATE_CODE; <--- Error PLS-00103: Encountered the symbol "END"...
IF :NEW.ZIP < LOW_ZIP OR :NEW.ZIP>HIGH_ZIP
END IF;
END;