I'm struggling with this piece of sql - Basically I want to update a column called output in table A (fileid, output) based on what is set to true on a similar column in Table b.(fileid, outname, sitename)
I've tried to do it with joins but no luck - any ideas on where I should be going with this?
UPDATE tableA A INNER JOIN tableB B ON A.FileId = B.FileID
SET A.[Output] = True
where (A.FileId = B.FileId) and (B.SiteName = 'PP') and (B.[output] = True);
Thanks,
e.
I've tried to do it with joins but no luck - any ideas on where I should be going with this?
UPDATE tableA A INNER JOIN tableB B ON A.FileId = B.FileID
SET A.[Output] = True
where (A.FileId = B.FileId) and (B.SiteName = 'PP') and (B.[output] = True);
Thanks,
e.