我看到这个 SQL 语句有效:
SELECT *
FROM Company
LEFT JOIN (
Departments
INNER JOIN Employees
ON Departments.dep_id = Employees.Dep_ID
) ON Company.compId = Departments.Comp_ID;
但是这个声明:
Departments INNER JOIN Employees ON Departments.dep_id = Employees.Dep_ID
无法解析。
这是否意味着仅适用于子查询的简短版本?