CREATE
VIEW getUsedColumns AS SELECT * FROM (SELECT DISTINCT attr FROM iba UNION SELECT DISTINCT attr FROM new_iba) WHERE attr != 0;its working with oracle
how to chenge in t-sql
thanx
CREATE
VIEW getUsedColumns AS SELECT * FROM (SELECT DISTINCT attr FROM iba UNION SELECT DISTINCT attr FROM new_iba) WHERE attr != 0;its working with oracle
how to chenge in t-sql
thanx
create view
Al Sauve
Ninja_Programmer
Hi,
you have to ALIAS Your SubQuery.
CREATE VIEW getUsedColumns
AS
SELECT * FROM
(
SELECT DISTINCT attr
FROM iba
UNION
SELECT DISTINCT attr
FROM new_iba
) SomeSubQuery
WHERE attr != 0;
HTH, jens Suessmeyer.
---
http://www.sqlserver2005.de
---