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 / rajesh.a
Update e2
set e2.empname=e1.empname
from
emp2 e2 inner join emp1 e1 on e1.empid=e2.empid
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is the beast way to write CTE in SQL Server ?
Can you roll back the ddl statement in a trigger?
What is mscorsvw.exe - process - microsoft .net framework ngen?
What are the new data types are introduced in sql 2000?
How to change the ownership of a schema in ms sql server?
What are the dmvs?
How to disable a login name in ms sql server?
What is bulkcopy in sql?
How to change a login name in ms sql server?
Difference between Sql server reporting services and Crystal reports?
What is blocking and how would you troubleshoot it? : sql server database administration
When you should use a low fill factor?
System requirements for sql server 2005 express edition?
What is built-in/administrator?
Does partitioning improve performance?