Hey all,
Am currently planning the re-design of a database I made for work. It was buggy, over-complex and I am hoping that you might be give me some help about how to get around a few of the errors I encountered last time. Be warned I am very new at this.
Firstly, is there a way of getting around mass Union Queries to aggregate data? I have 200 tables which need to be processed by the same query, and output into a single table. First time around I used Union Queries and then they got too big so I had to Union Query the Union Queries together. And then THAT got too big so I had to Append the original Union Query and then Union the table outputs together. (I know, I know.....)
Secondly, (assuming there is no answer to part 1) does anyone know what script I would need to run to automatically run the relevant appends and queries automatically instead of having to run each one individually?
Thanks in advance,
Greg
Am currently planning the re-design of a database I made for work. It was buggy, over-complex and I am hoping that you might be give me some help about how to get around a few of the errors I encountered last time. Be warned I am very new at this.
Firstly, is there a way of getting around mass Union Queries to aggregate data? I have 200 tables which need to be processed by the same query, and output into a single table. First time around I used Union Queries and then they got too big so I had to Union Query the Union Queries together. And then THAT got too big so I had to Append the original Union Query and then Union the table outputs together. (I know, I know.....)
Secondly, (assuming there is no answer to part 1) does anyone know what script I would need to run to automatically run the relevant appends and queries automatically instead of having to run each one individually?
Thanks in advance,
Greg