Forum Moderators: open
UPDATE tableB SET filter_code=(
SELECT why FROM tableA WHERE
tableB.id = tableA.id AND
tableB.username = tableA.username AND
tableB.postdate = tableA.postdate) UPDATE tableB SET tableB.filter_code = tableA.why
# a FROM here throws me off, but it's in the example above
FROM tableB
INNER JOIN tableA ON
tableB.id = tableA.id AND
tableB.username = tableA.username AND
tableB.postdate = tableA.postdate UPDATE tableB
INNER JOIN tableA ON
tableB.id = tableA.id AND
tableB.username = tableA.username AND
tableB.postdate = tableA.postdate
SET
tableB.filter_code = tableA.why [edited by: phranque at 6:19 am (utc) on Mar 8, 2022]
[edit reason] formatting [/edit]