Link to home
Start Free TrialLog in
Avatar of Brendan Tate
Brendan Tate

asked on

FROM Keyword not found where expected - Crystal Reports command object

When using a union as a command object in CRXI i'm getting an error 'FROM keyword not found where expected'. Oracle error 923

SELECT *, 'H2' AS Type  FROM db.table1
WHERE TLC_CURRENT_FLAG = '1'
UNION ALL
SELECT *, 'H3' AS Type FROM db.table2
WHERE TLC_CURRENT_FLAG = '1'
UNION ALL
SELECT *, 'H4' AS Type FROM db.table3
WHERE TLC_CURRENT_FLAG = '1'
UNION ALL
SELECT *, 'H5' AS Type FROM db.table4
WHERE TLC_CURRENT_FLAG = '1'
UNION ALL
SELECT *, 'H6' AS Type FROM db.table5
WHERE TLC_CURRENT_FLAG = '1'

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Raghavendra Hullur
Raghavendra Hullur
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Brendan Tate
Brendan Tate

ASKER

Perfect cheers!