Thank you all for the tips. I came up with the same information in the docs about the joins which is why I thought how I did them it would work.
I did try removing joins and such and making it as simple as possible. I do know if I run the top select (all the stuff before the UNION ALL) it runs perfectly fine and the same is true for the bottom part. The problem comes in when I add in the UNION ALL in between them. So I must have the syntax wrong for the UNION.
I am interested about that {OJ tablea join tableb on a=b} but I am unfamiliar with how to do that. Could you give me an example or some more pointers on how I should do that?
What is the latest version of the driver?
Thank you all for the time so far!
I did try removing joins and such and making it as simple as possible. I do know if I run the top select (all the stuff before the UNION ALL) it runs perfectly fine and the same is true for the bottom part. The problem comes in when I add in the UNION ALL in between them. So I must have the syntax wrong for the UNION.
I am interested about that {OJ tablea join tableb on a=b} but I am unfamiliar with how to do that. Could you give me an example or some more pointers on how I should do that?
What is the latest version of the driver?
Thank you all for the time so far!