I want to do a union query like this one in crytal reports 8.0.
SELECT Pol, ENT_1ER, LN_1ER FROM tabla610 WHERE ENT_1ER ='27'
UNION
SELECT Pol, ENT_2DO, Ln_2do FROM tabla610
where ent_2do ='27'
UNION
SELECT Pol, Ent_3er, ln_3er from tabla610
where ent_3er ='27'
This query runs fine on Crystal SQL Designer but when I write in on Crytal Reports (Show SQL Query...) it gave me an error like 'query block has incorrect number of result columns'.
Any help?...
SELECT Pol, ENT_1ER, LN_1ER FROM tabla610 WHERE ENT_1ER ='27'
UNION
SELECT Pol, ENT_2DO, Ln_2do FROM tabla610
where ent_2do ='27'
UNION
SELECT Pol, Ent_3er, ln_3er from tabla610
where ent_3er ='27'
This query runs fine on Crystal SQL Designer but when I write in on Crytal Reports (Show SQL Query...) it gave me an error like 'query block has incorrect number of result columns'.
Any help?...