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

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

Is This Answer Correct ?    13 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to disable a login name in ms sql server?

578


How you can add messages to the nt event log from within a stored procedure?

561


Why do you want to join software field as you have done your BE in Electronics?

1690


How to scale out a federation by Sql statement?

90


What will be the maximum number of index per table?

576






what are different types of backups available in sql server? : Sql server database administration

485


How do I find the size of a sql server database?

476


What is the library index called?

569


How to declare and use cursor variables?

574


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

563


How do I find the sql server version?

506


Describe how to use linked server?

533


Explain few examples of RDBMS?

605


Some queries related to SQL

574


What is sql server programming?

532