I am trying to make a union query to join 4 tables. I have reduced the
tables to just 5 fields and made sure that the field types and names are the
same. I keep getting an error message ODBC call failed.
I have tried various combinations of the tables and find that I can use any
2 of them but as soon as a third is included in the statement the query
fails.
Is there a limit on the number of tables in a union query.
The union query looks like this in its simplest form when I have made sure
that the fields names, types and position match but I have also tried by
specifically naming the fields in the same order for each table
select * from T1 union select * from T2 union select * from T3 UNION select
* from T4;
tables to just 5 fields and made sure that the field types and names are the
same. I keep getting an error message ODBC call failed.
I have tried various combinations of the tables and find that I can use any
2 of them but as soon as a third is included in the statement the query
fails.
Is there a limit on the number of tables in a union query.
The union query looks like this in its simplest form when I have made sure
that the fields names, types and position match but I have also tried by
specifically naming the fields in the same order for each table
select * from T1 union select * from T2 union select * from T3 UNION select
* from T4;