不支持加入表达式 - MS Access 2013

时间:2016-03-24 05:16:11

标签: sql ms-access join left-join

我正在开发一个员工管理系统,在这里我需要对法官和帖子表进行联接,但MS Access说“不支持JOIN表达式”。我无法理解错误在哪里。

Under是我的完整查询。

SELECT [a.emp_name], [b.des_name], FORMAT([c.dte_frm], 'dd.MM.yyyy') AS
dte_frm, iif([d.crt_nat] = 'court', [e.jdg_name]&', '&[f.dsg_name],
[d.crt_name]&' '&[d.crt_loc]) AS location, [a.emp_teh] AS tehsil,
[a.remarks] AS remarks
FROM employees a, designation b, courts d, postings c
LEFT JOIN judges e ON [c].crt_id = [e].crt_id
WHERE [c.des_id] = [b.des_id]
AND [a.emp_cod] = [c.emp_id]
AND [c.crt_id] = [d.crt_id]
AND [c.to_dte] = 1
AND [c.other_dist] = 0
ORDER BY [d.crt_sort], [a.emp_bps] DESC , [b.des_name] ASC

请帮我纠正一下。

0 个答案:

没有答案