Skip to content
Advertisement

Joining on 3 csv files

I need to retrieve data from 3 different CSV files (Adres.CSV, ID.CSV and Regios.CSV) and combine this in an Excel table.

This SQL statement works fine,

as well as

but when I combine them to

I get an error message that an operator is missing.

What am I overlooking?

Advertisement

Answer

There are two issues here:

  1. You are missing a space between the 3rd and 4th lines.
  2. JET/ACE SQL requires you to use parentheses when doing multiple joins.

This should fix the sql error you are seeing:

Your string ends up evaluating with ...Regio.[Plaats]INNER JOIN ID.CSV.... This lack of white space causes the sql parser to miss your second INNER JOIN .

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement