Hi Patrick, I am sorry about the disconnect here. I wanted to rephrase my question to make it more clear with examples I have a table A having following columns 1) line_id (PK) 2)groupid 3) element 4) pf 5) scope 6)pid All i wanted here is to update table A's groupid column based on matching attributes in table B. The structure of Table B is 1) execkey(PK) 2)groupid 3)pf 4)scope 5)pid The update condition here is if A.element = "ABC", then update A.groupid = (Select groupId from B where A.pf = b.pf) if A.element = "DEF", then update A.groupId = (Select groupId from B where A.scope = B.scope and A.pid=B.pid) Regards, Sheeba Swaminathan
... View more