I am trying to copy the appropriate gradation_date values ββfrom the graduation_term table to the rows in the user_education_mba_school table that have the corresponding gradation_term_id. Here is my non-working request
TABLE DEFS **user_education_mba_school school_id graduation_date graduation_term_id **graduation_term graduation_term_id graduation_year_id graduation_date **graduation_class graduation_class_id graduation_year_id **user user_id graduation_class_id
- Multi-JOIN does not work ...
UPDATE u SET graduation_class_id = gc.graduation_class_id FROM [user] u JOIN user_education_mba_school mba ON mba.user_id = u.user_id JOIN graduation_term gt ON mba.graduation_term_id = gt.graduation_term_id JOIN graduation_class gc ON gt.graduation_year_id = gc.graduation_year_id
source share