Update question

  • I'm trying to update a table with the following:

    UPDATE clean SET clean.branchid = branches.branchid FROM clean WHERE clean.ppi = branches.ppi

    I tried it with an INNER JOIN but that also gave me the following error:

    syntax error(missing operator) in query expression 'branches.branchid FROM clean'

     

    If you have any ideas, I will gladly hear them. I'm sure it's just a stupid little mistake I made.

    Thanks!

  • Try

    UPDATE clean SET branchid = branches.branchid

    FROM clean inner join branches on clean.ppi = branches.ppi

    Russel Loski, MCSE Business Intelligence, Data Platform

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply