|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Where's my error in this statement?
SELECT table1.*, table2.Name, table3.MaintenanceID FROM table1
INNER JOIN table2 ON table1.MachineID = table2.IDORDER BY table2.Name It works fine without the LEFT JOIN, but as soon as I add that clause in I get the following error: Microsoft JET Database Engine error '80040e14'If someone could point out my mistake I'd appreciate it. Spara |
|
#2
|
||||
|
||||
|
Hi,
if you are using a access database, put the first inner join in brackets: Code:
SELECT table1.*, table2.Name, table3.MaintenanceID FROM table1 (INNER JOIN table2 ON table1.MachineID = table2.ID) LEFT JOIN table3 ON table1.SheetID = table3.ID hope this helps
__________________
Look! Its a ShemZilla ![]() ![]()
|
|
#3
|
|||
|
|||
|
Thanks for the help. Now when I run the statement, I get the following error:
Code:
Microsoft JET Database Engine error '80040e14' Syntax error in FROM clause. I'm not sure why this is happening. BTW, I am using an access database. Spara |
![]() |
| Viewing: ASP Free Forums > Database > SQL Development > Where's my error in this statement? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|