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

How do I partition a table in sql server?

1041


Where views are stored in sql server?

984


what is a check constraint?

1114


How to enter date and time literals in ms sql server?

1016


Your table has a large character field there are queries that use this field in their search clause what should you do?

884


What is the contrast amongst drop and truncate?

1034


Explain optimistic and pessimistic concurrency?

993


as a general practice, it is recommended to have dbo be the owner of all database objects however, in your database you find number of tables owned by a user other than dbo, how could you fix this? : Sql server administration

967


When would you use an insert into .. Select option versus an insert into .. Values option? Give an example of each?

1101


Explain can SSRS reports Cache results?

158


How to download and install microsoft sql server management studio express?

1037


How to find related tables in sql server?

943


Why can there be only one clustered index and not more than one?

1005


Write a code to select distinct records without using the DISTINCT keyword.

1114


What is the difference between Triggers and Stored Procedure?

1095