Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Adding a record at the begining of a view

Author  Topic 

goligol
Posting Yak Master

128 Posts

Posted - 2011-09-08 : 10:39:43
I am creating the following view:

SELECT [naics2002] NA
FROM [bts].cf07ur00.naics2002

I want to add a row of '00' to the column NA in the beginning of the view table.

russell
Pyro-ma-ni-yak

5072 Posts

Posted - 2011-09-08 : 10:51:24
SELECT [naics2002] NA
FROM [bts].cf07ur00.naics2002
UNION ALL
SELECT '00'
Go to Top of Page

goligol
Posting Yak Master

128 Posts

Posted - 2011-09-08 : 11:32:30
thank you
Go to Top of Page

russell
Pyro-ma-ni-yak

5072 Posts

Posted - 2011-09-08 : 11:42:11
You're welcome. Glad to help.
Go to Top of Page
   

- Advertisement -