Len Boorman
Back in gainfull employme
- Local time
- Today, 20:39
- Joined
- Mar 23, 2000
- Messages
- 1,930
Inherited a crap database.
Got 61 tables each with 16 fields. Should be 1 Table with 16 fields.
Tried a UNION ALL query to give me a result that looks like a single table but got Query too complex error. Shaved it down a bit until okay and then created second UNION for the missing bits and then UNIONed the two UNION queries so got there okay in the end.
Question is
What are the limits of a UNION query.
Is it simply the number of fields that limits the number of Select statements
or
The number of Select statements limits the number of fields
or
Something in between
Have solved my immediate problem but would like to know what the limitations of UNION
Len B
Got 61 tables each with 16 fields. Should be 1 Table with 16 fields.
Tried a UNION ALL query to give me a result that looks like a single table but got Query too complex error. Shaved it down a bit until okay and then created second UNION for the missing bits and then UNIONed the two UNION queries so got there okay in the end.
Question is
What are the limits of a UNION query.
Is it simply the number of fields that limits the number of Select statements
or
The number of Select statements limits the number of fields
or
Something in between
Have solved my immediate problem but would like to know what the limitations of UNION
Len B