Hi, you need an update starting from ..
SELECT tA.id, count(*) c FROM tA join tA ON tB.id = tA.id where tA.id = 5 GROUP BY tA.id having c > 1;
I have a relational model for many. but you need to enable the account in the update
UPDATE tA join tA ON tB.id = tA.id set cnt = 5;
assuming this is a counting result
where 'c' is the first selection counter ... maybe.
UPDATE tA join tA ON tB.id = tA.id set cnt = (SELECT count(*) c FROM tA join tA ON tB.id = tA.id WHERE tA.id = 5 GROUP BY tA.id having c > 1);
say query syntax and not supported .. thnk
source share