Thank God, now the question is in order.
There is no SET syntax after the table name, and GROUP BY syntax should be excluded from EXISTS.
UPDATE report 1 SET status = 'time is larger' WHERE EXISTS
(SELECT ip_src, layer4_sport, timestamp FROM
(SELECT ip_src, layer4_sport, timestamp from report 1) AS tmpb
WHERE report 1.layer4_sport = tmpb.layer4_sport
AND report 1.ip_src = tmpb.ip_src
AND report 1.timestamp > tmpb.timestamp)
source
share