Hi All,
Im trying to create a Union All in SQL Server but not having much luck, this is basically what im trying todo.
create view aview
as
(Select * from tblA)
Union ALl
(Select * from tblb)
Union ALl
(Select * from tblc)
Union ALl
(Select * from tbld)
all the tables are identical, so its not a field conflict error, but this is the error i get
Set operators may not appear within the definition of a view.
whats wrong??
Cheers
Ben
Im trying to create a Union All in SQL Server but not having much luck, this is basically what im trying todo.
create view aview
as
(Select * from tblA)
Union ALl
(Select * from tblb)
Union ALl
(Select * from tblc)
Union ALl
(Select * from tbld)
all the tables are identical, so its not a field conflict error, but this is the error i get
Set operators may not appear within the definition of a view.
whats wrong??
Cheers
Ben