I want to update a field by finding the max value and have in increment.Table name:sysnotes_sqlfield I want to update is doc_aware_1. Sample data:note_name name_value note_dt note_topic doc_aware_1AR_CUST 00005000 201011 TOPIC NULLAR_CUST 00004500 201011 PDA 1AR_CUST 00003300 201011 PDA 2AR_CUST 00003349 201011 NOTE# NULL
What I want to do is anywhere the note_topic = 'PDA' I want to update the doc_aware_1 field. To do that I need to find the max doc number and increment from that. This is what I've tried but it does not work:UPDATE SYSNOTES_SQLSET DOC_AWARE_1 = MAX(DOC_AWARE_1)+1WHERE NOTE_TOPIC = 'PDA'