I have a table with the following column:
NOTEID NUMBER NOT NULL,
For all intents and purposes, this column is the primary key. This
If your MAX(noteid) is 799, then try:
CREATE SEQUENCE noteseq START WITH 800 INCREMENT BY 1
Then when inserting a new record, for the NOTEID column, you would do:
noteseq.nextval