I've searched and searched and I can't figure out what's wrong.
Without going into detail of what exactly is in these tables (they are pretty basic varchar columns, nothing out of the ordinary), why does this keep giving me the 'SQL command not properly ended' error.
The first NVL is so I can set the SPID_NAME to 'Unknown' if there is no match between SN1.SUB_GRP_NAME and L1.SUB_GRP_NAME.
The second NVL is used because sometimes L1.SUB_GRP_NAME is NULL, and I change it to '9999'.
I'm using PLSQL/Oracle Developer 3.1.07.
update L1
SET L1.SPID_NAME = NVL(SUB_GRP_TO_NAME.SPID_NAME, 'Unknown')
from ACME_NORMAL L1
left outer join SUB_GRP_TO_NAME SN1
on SN1.SUB_GRP_NAME = NVL(L1.SUB_GRP_NAME,'9999');
 
    