문제는 여는 괄호 ((그들은에서 첫 번째 후 즉시 할 필요의 위치에 있었다 여기에 작동하는 무슨이다. 일반적으로
SELECT Contact_addresses.AddressID, Contact_addresses.ContactID, Contact_addresses.Address1, Contact_addresses.Address2, Contact_addresses.City, Contact_addresses.State, Contact_addresses.Zip, Owner_Operator.FIRM_NAME, Official_Correspondent.FIRST_NAME, Official_Correspondent.LAST_NAME, Official_Correspondent.SUBACCOUNT_COMPANY_NAME, Official_Correspondent.PHONE_NUMBER
FROM ((Contact_addresses
LEFT JOIN
(SELECT
Owner_Operator.CONTACT_ID,
Owner_Operator.FIRM_NAME
FROM Owner_Operator) AS Owner_Operator
ON Contact_addresses.ContactID=Owner_Operator.CONTACT_ID
)
LEFT JOIN
(SELECT
Official_Correspondent.CONTACT_ID,
Official_Correspondent.FIRST_NAME,
Official_Correspondent.LAST_NAME,
Official_Correspondent.SUBACCOUNT_COMPANY_NAME,
Official_Correspondent.PHONE_NUMBER
FROM Official_Correspondent) AS Official_Correspondent
ON Contact_addresses.ContactID=Official_Correspondent.CONTACT_ID
)
;
, 각 하위의 테이블 별칭을 가져야한다 즉,'(Select ...) As X 왼쪽 조인 (Select ...) AS Y' – Kaf
당신의 대괄호는 약간 엉성해야합니다 : (table or query) from left join (table or qry) on col = col. from contact_addresses와 왼쪽 조인 사이의 괄호 세트는 거기에 있어서는 안됩니다 (테이블 별칭 주석 aboe에도주의해야합니다.) – Twelfth