Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Please give me the SP for the below scenario. I have two
tables named Table1 and Table2...I need to fetch record by
record from Table1 and insert the record in to table2 where
the value in the sno column of the table1 is even number.

Answer Posted / rajesh.a

insert into table2(Column1,Column2) select Column1,Column2
from Table1 where Column1%2 = 0

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is sqlcmd?

1138


Why variables called the most powerful component of ssis?

1128


What is database replication?

1210


Can you name a few encryption mechanisms in sql server?

993


What is user-defined functions? What are the types of user-defined functions that can be created?

1085


how do you implement one-to-one, one-to-many and many-to-many relationships while designing tables? : Sql server database administration

1112


What is index, cluster index and nonclustered index?

1049


Explain cdc and sql injection?

1045


What is a cursor, index in sql?

1130


How to define the name and server for a new dsn?

1197


How to create prepared statements using odbc_prepare()?

1106


What is the difference between a function and a stored procedure?

1125


Do you know how to implement service broker?

973


What are the various editions of sql server 2017 that are available in the market?

941


Can you tell me some of the common replication dmv's and their use? : sql server replication

978