S
Shawna Nathman
Hi...I am trying to configure my access database with mysql. I have a few
tables that are linked together, and for some reason my sql is not
understanding my query. Which is:
SELECT Contracts.Ship, Contracts.ContractID, Contacts.FirstName,
Contacts.LastName, [Turnaround Ports].UniqueDay, PortCodes.Port AS
Startport, PortCodes_1.Port AS Endport
FROM (((Contracts INNER JOIN [Turnaround Ports] ON Contracts.Ship =
[Turnaround Ports].ship) INNER JOIN Contacts ON Contracts.EmployeeNumber =
Contacts.ContactID) LEFT JOIN PortCodes ON Contracts.SignOnPlace =
PortCodes.[Port Code]) LEFT JOIN PortCodes AS PortCodes_1 ON
Contracts.SignOffPlace = PortCodes_1.[Port Code]
WHERE (((Contracts.SignOn)<[retdate]) AND ((Contracts.SignOff)>[date]) AND
(([Turnaround Ports].DAYS)="1"));
Where is my syntax wrong?
Any help would be awesome and thanks!
tables that are linked together, and for some reason my sql is not
understanding my query. Which is:
SELECT Contracts.Ship, Contracts.ContractID, Contacts.FirstName,
Contacts.LastName, [Turnaround Ports].UniqueDay, PortCodes.Port AS
Startport, PortCodes_1.Port AS Endport
FROM (((Contracts INNER JOIN [Turnaround Ports] ON Contracts.Ship =
[Turnaround Ports].ship) INNER JOIN Contacts ON Contracts.EmployeeNumber =
Contacts.ContactID) LEFT JOIN PortCodes ON Contracts.SignOnPlace =
PortCodes.[Port Code]) LEFT JOIN PortCodes AS PortCodes_1 ON
Contracts.SignOffPlace = PortCodes_1.[Port Code]
WHERE (((Contracts.SignOn)<[retdate]) AND ((Contracts.SignOff)>[date]) AND
(([Turnaround Ports].DAYS)="1"));
Where is my syntax wrong?
Any help would be awesome and thanks!