Using SQLite, I am trying to update three columns based on another table (two columns)
The three columns are (Table1): 'AgentCreatedID' 'AgentOwnedID' 'AgentSentID'
The other table (Table2) consists of 'AgentID' and 'Designation'.
If the ID in one of the three columns matches the 'AgentID' in the second table, I want the 'Designation' value to populate. This table is a list of ALL unique IDs and the corresponding designation. Each row of data has a Creator, Owner, and Sender. I need to see what designation that person is from.
In Access, this would look something like this for the first value. I would also need to add the other two values. UPDATE Table1 LEFT JOIN Table2 ON Table1.AgentCreatedID = Table2.AgentID SET raw.AgentCreatedID = [ Table2 ]![ Designation];
I am not sure what that ! command is or how it could be used in SQLite.