Solved

Script

Posted on 2008-06-20
1
184 Views
Last Modified: 2013-11-05
Hi All

I'm looking for a script that loops through a table(table1) and for every row in the table it performs an insert in another table(table2).
So If table1.value = "number" then insert  table1.value  into table2

Thanks for any help
0
Comment
Question by:ram_os
1 Comment
 
LVL 75

Accepted Solution

by:
Aneesh Retnakaran earned 150 total points
ID: 21831285
insert into Table2
select Column1, col2....
 from from Table1 where value = 'number'
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Viewers will learn how the fundamental information of how to create a table.

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now