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
Explain the properties of a relational table?
What is difference between primary key and foreign key?
What authentication modes does sql server support?
What is the difference between DataRow.Delete() and DataRow.Remove()?
Explain the cursor lock types?
What is sql server profiler?
How to convert numeric expression data types using the cast() function?
Which joins are sql server default?
How do I view a trc file?
Can you move the resources after pausing the node? : sql server database administration
Explain aggregate functions?
How to copy data from one table to another table?
What are truncate options available in sql server? : sql server database administration
What is the New in SQL server 2008?
What is change data capture (cdc) in sql server 2008?