I have two tables with these columns:
Users: user, class, class, location.
Classes: class, location
The class column of the Users table shows the same column in the Classes table.
I want to update all rows in the Users table so that each row of the "location" column of the "Users" table is equal to the location of the class.
So, I have a line with the values: Mike, Math, A +, New York
And the corresponding row in the Classes table for Math: Mathematics, Chicago
I want the user table row to become Mike, Math, A +, Chicago.
thanks
source share