I have 2 tables vehicle_table and vehicle_group_table
- vehicle_table --> Has columns --> vehicleid,groupname,groupid
- vehicle_group_table --> has columns --> groupid,groupname
I want to update my vehicle_table's groupid column by joining vehicle_group_table on its common groupname column
UPDATE vehicle_table 
    SET vehicle_table.groupid = vehicle_group_table.groupid
    WHERE vehicle_table.groupname = vehicle_group_table.groupname
But this seems to be not working.
 
     
     
     
     
     
     
    