I have a table in a Postgresql database that has the columns name and email, the name column is already populated, however the email column is empty. I also have a CSV file that has the columns user and user_email both populated. How can I update the email column using the CSV file to match the user and name as well as update the correct email with user_email?
I've been looking up answers or go through some tutorials but I wasn't quite sure how to word the problem so I wasn't able to find any answers.
This is what my Postgres table looks like right now:
| name | email |
| joh | |
| alex | |
| adams | |
This is my CSV file:
| user | user_eamil|
| joh | a@g.com |
| alex | a@g.com |
| adams | a@g.com |