Доброго для всем! Подскажите что не так с запросом в MS ACCESS!
Говорит что ошибка в FROM, но я не понимаю в чём именно.
SELECT
[Open demand].[Material ID],
[Open demand].[WO],
[GI manual].[GI q-ty] AS [Q-ty],
[GI manual].Receiver AS [Receiver],
[GI manual].[GI Date] AS [Date]
FROM [WOs]
(
(
(
INNER JOIN [Stock balance]
)
INNER JOIN [GI manual] ON [Stock balance].[Material ID] = [GI manual].[Material ID]
)
INNER JOIN [Open demand] ON [Stock balance].[Material ID] = [Open demand].[Material ID] ON ([WOs].[Заказ] = [Open demand].WO) AND ([WOs].[Заказ] = [GI manual].WO)
)
UNION ALL
SELECT
[Open demand].[Material ID],
[Open demand].[WO],
[GI RV register].[GI q-ty] AS [Q-ty],
[GI RV register].Receiver AS [Receiver],
[GI RV register].[GI date] AS [Date]
FROM [WOs]
(
(
(
INNER JOIN [Stock balance]
)
INNER JOIN [Open demand]
)
INNER JOIN [GI RV register] ON [Open demand].[Reservation ID] = [GI RV register].[Reservation ID] ON [Stock balance].[Material ID] = [Open demand].[Material ID] ON [WOs].[Заказ] = [Open demand].[WO]
);