I’m new to MySQL and I have been given a task to do which to me is quite advanced.
There are 3 tables. 1st table contains the user information (users). The second table also contains the user information with the name of the state they are from (staff). While the 3rd table contains the state id and the state name (states). I’m tasked with populating the first table, the user table with state_id (from the states table) for each user. How do I go about this, since information is needed from the second table to know what state id to put in the first table?