Subject | Error CREATE VIEW (code = -607) |
---|---|
Author | eric_developer |
Post date | 2011-10-26T14:34:50Z |
Hi,
how to solve? simple example:
RECREATE VIEW TMP_REGC100 AS
SELECT CODFOR
FROM TMP_NFENT
GROUP BY 1
UNION all
SELECT CODEMP
FROM TMP_NFSAI
-------------------
Dynamic SQL Error
SQL error code = -607
Invalid command
must specify column name for view select expression
-------------------
i tried no success:
.... AS SELECT * FROM ( SELECT ... GROUP ... UNION ... SELECT ... )
how to solve? simple example:
RECREATE VIEW TMP_REGC100 AS
SELECT CODFOR
FROM TMP_NFENT
GROUP BY 1
UNION all
SELECT CODEMP
FROM TMP_NFSAI
-------------------
Dynamic SQL Error
SQL error code = -607
Invalid command
must specify column name for view select expression
-------------------
i tried no success:
.... AS SELECT * FROM ( SELECT ... GROUP ... UNION ... SELECT ... )