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

update emp2 set empname =e.empname from emp1 e where
e.empid =emp2.empid

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define Joins?

601


What are date and time data types in ms sql server?

517


What is a join in sql? What are the types of joins?

513


When I run the sql server 2000 setup, it just hangs. What do I do?

642


How we create SQL Server 2005 Reporting Services ? Give me Sample

1565






Can we call future method from trigger?

499


Explain the etl (extraction, transformation, and loading)?

551


What is truncate table?

542


What is the usage of sign function?

581


What is wide table?

523


What is sql azure database?

188


Can I run multiple instances of sql server 2000 at the same time on one computer?

587


Can you create a logon trigger in sql server 2005 express edition?

564


What is de-normalization in sql database administration? Give examples?

525


What is the difference between update lock and exclusive lock?

490