write down the sql query?

Table Name : emp1
empid empname
1 bala
2 guna

Table Name : emp2
empid empname
1 <Null>
2 <Null>

Solution : emp1 names are updated in emp2, write a query?

Answer Posted / a

Update emp2 set empname = (Select empName from emp1 where
emp2.empid =emp1.empid)

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of replication are there in sql server 2000?

557


how to control the amount of free space in your index pages? : Sql server database administration

596


Do you know what is user defined datatypes and when you should go for them?

494


How do I start sql server agent automatically?

499


What does the update command do?

609






Explain the different index configurations a table can have?

500


What is raid, and how it can influence database performance?

568


Explain how you can deploy an SSRS report?

106


What is filtered index?

647


What is transaction server auto commit?

570


What is an expensive query?

528


How many categories of functions based their return modes?

585


What is the command used to check locks in microsoft sql server?

536


Please explain that what are the basic functions for master, msdb, model, tempdb and resource databases? : SQL Server Architecture

552


How to delete a database in ms sql server?

551