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 are the tables in sql?

612


Why do you need a sql server?

493


What happens if date-only values are provided as date and time literals?

523


Do you know what are various aggregate functions that are available?

511


What is table constraint?

528






How do I edit a procedure in sql server?

533


Can primary key be a foreign key?

548


How to stop a loop early with break statements in ms sql server?

553


Do you know concepts and capabilities of sql server?

568


What is the need for group functions in sql?

551


what changed between the previous version of sql server and the current version? : Sql server database administration

504


How to download and install microsoft .net framework version 2.0?

536


What is resource db in sql server?

583


what is raid and what are different types of raid configurations? : Sql server database administration

524


What information is maintained within the msdb database?

527