왜 t2에서 오류가 발생하는지 잘 모르겠습니다. 간단한 SQL 쿼리를 실행하려고합니다. MS-SQL과 오류 메시지에서 실행 는하위 쿼리가 포함 된 왼쪽 조인
UPDATE t1
SET t1.EmpSubCompetency = t2.EmpSubCompetency,
t1.Competency = t2.Competency,
t1.FileName = t2.FileName,
t1.Longitude = t2.Longitude,
t1.Latitude = t2.Latitude,
t1.SubAreaName = t2.Region,
t1.SectorTag=t2.SectorTagClassification
FROM dbo.STG_MyCompetencies t1
LEFT JOIN (select * from dbo.STG_EmployeeMaster where Act_Flg='Y') t2
오류가 발생하는 경우 질문에 오류 메시지를 포함시켜야하는 이유는 무엇입니까? – HoneyBadger
'ON' 절이 누락되었습니다 –
또한 어떤 DBMS를 사용하고 있습니까? MySQL은? SQL Server? 신탁? –