Solved my own problem. I forgot to remove ORDER BY clause from each SQL statement and move it to the end. The UNION works when the ORDER BY is at the end.
SELECT "PER"."SSN", RPAD("MED"."PLAN_TYPE",6,' ') AS TYPE, RPAD("MED"."BENEFIT_PLAN",6,' ') AS PLAN, RPAD("MED"."COVRG_CD",2,'...
Can the SQL Union function be used within the ReportSmith SQL window? I am not having any luck trying to get my two separate SQL queries to work when I union them. Note - each query works separately.
Any examples of the SQL Union that work within ReportSmith would be appreciated.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.