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
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Inserting into one table from another

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2004-06-08 : 07:56:57
Mr.X writes "Hi

I want to insert values from one table to another.. the table contains numeric values, with some zeros also. i want to insert only the values which are non-zero into another table

Please solve my problem"

AndrewMurphy
Master Smack Fu Yak Hacker

2916 Posts

Posted - 2004-06-08 : 07:59:01
insert into table1
select col1, col2, col3, etc from table 2
where col1 > 0
and col2 > 0
and col3 > 0

Go to Top of Page
   

- Advertisement -