How do I update a column based on a match to 2nd table using another column from my target table?
This is a postgresql DB. I have users in my users table that are associated with a customer entity by a customer_id column. The customer is broken down into smaller segments by department and the users are assigned to a department. It looks something like this.
PostgreSQL: unexpected update all records in database
I have one prod table and one temp.
The task: update all records in prod table with information from temp.