I am new to this and programming and wondering if someone could help me with a sql query. I have 3 tables. table 1 is called Student(id,number,teacherID) and table 2nd table is called StudentUpdate (StudentId, teacher_number) and the third table is called teacher (id, number,studentID).
I would like to update table 1 (student table) with all the values from table 2 (student update) based on the teacherID . how do I do that when table 2 contains the teacher number not the ID ? I am using SQL server 2012. Thanks to all in advance