SELECT A.單號,A.金額,A.職稱,Table3.年資
FROM (SELECT Table2.單號,Table1.金額,Table2.職稱
FROM Table1
INNER JOIN Table2 ON Table1.單號 = Table2.單號
WHERE Table2.職稱 LIKE '*C*'
OR Table2.職稱 LIKE 'I*') AS A
INNER JOIN Table3 ON A.職稱 = Table3.職稱
請參閱 : Like 運算子 (Microsoft Access SQL)
請參閱 : LEFT JOIN、RIGHT JOIN 運算 (Access)
請參閱 :[SQL] Access 在 LEFT JOIN 巢狀語法中使用 INNER JOIN
這樣子可用嗎?
SELECT A.單號,A.金額,B.職稱,C.年資
FROM Table1 A, Table2 B, Table3 C
WHERE A.單號=B.單號
AND B.職稱=C.職稱