我在 Access 中有这个 SQL,但它给了我一个错误。我试过移动括号,但没有解决问题。
SELECT
a.title, a.id, a.name, l.user, l.time
FROM
Reports a
INNER JOIN (
AuditLog AS l ON a.id = l.id
INNER JOIN (
(
SELECT min(time) Mintime, id
from AuditLog
GROUP BY id
) AS t )
ON l.id = t.id
AND l.time = t.mintime )
WHERE
a.NAME LIKE 'something*'
AND a.ACTIVE='Y'
如何解决我遇到的语法错误?