on 2007 Jun 21 10:14 AM
When I code a "UNION ALL" clause in a query template, XMII seems to ignore the second portion of the SQL. That is, if I do:
SELECT COLA, COLB FROM ....
UNION ALL
SELECT COLB, COLB FROM ...
the results for the first portion of the clause are returned but not the second portion. The SQL works fine in TOAD, just not in XMII whether as a result of testing the query in the editor or calling the query in a Trx.
Has anybody else struck this problem?
Cheers.
Request clarification before answering.
Laurie,
Is there any chance that you are not getting the results from the second query because the first SELECT statement returns more than the query template's RowCount parameter?
If you need the values sorted you can also add an ORDER BY clause to the second SELECT statement and it should cover the full unioned resultset.
Regards,
Jeremy Good
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.