Is there any way to reference updatable table in UPDATE statement in Teiid (8.4)?
For example: i have table (tag_id, value, time, active_ind). I'd like to mark all tags with non-max time.
UPDATE BUFFER buf
SET active_ind = 'N';
WHERE "time" NOT IN (
SELECT MAX("time")
FROM BUFFER
WHERE tag_id = buf.tag_id
);
But Teiid doesn't support alias for updatable BUFFER
table. How can i make such update? Thanks in advance.