Update table using joined tabled

PHOTO EMBED

Fri Nov 04 2022 17:45:15 GMT+0000 (UTC)

Saved by @dhfinch #sql #sqlserver

UPDATE 
    t1
SET 
    t1.c1 = t2.c2,
    t1.c2 = expression,
    ...   
FROM 
    t1
    [INNER | LEFT] JOIN t2 ON join_predicate
WHERE 
    where_predicate;
content_copyCOPY