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 / meenaprasanna

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

Is This Answer Correct ?    14 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a deadlock and what is a live lock?

1003


What is a result set object returned by mssql_query()?

1157


How do you start single user mode in clustered installations?

941


What is row_number () and partition by in sql server?

1078


What does REVERT do in SQL Server 2005?

961


Which trace flags are enabled in sql server?

1016


What are the advantages of having an index on the sql server?

925


What is default port number for sql server 2000?

1046


What's new in sql management studio for sql server? : sql server management studio

1065


What are Spatial data types in SQL Server 2008

1020


How to add a new dsn with the odbc driver for sql server?

1060


How would you go about developing a ssrs report?

168


What is relationship? What number of sorts of relationship are there?

1138


Is resultset an interface?

967


Call by value and call by reference in procedure and function, with NOCOPY.

1306