I have this query that I need to update
UPDATE pomhst hst
SET hst.ponot1 = hdr.poshp1
FROM pomhdr hdr
WHERE LENGTH(LTRIM(RTRIM(hst.poshp1))) > 0
AND hdr.postat = 3;
and when I execute it, it shows this error
SQL Error [42601]: [SQL0199] Keyword FROM not expected. Valid tokens: USE SKIP WAIT WITH FETCH LIMIT ORDER WHERE OFFSET. I do not know what is wrong with my query
I tried adding inner join but it didnt work as well.